summaryrefslogtreecommitdiff
path: root/python/vyos/utils
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-03-30 15:29:59 +0000
committerDaniil Baturin <daniil@baturin.org>2024-03-30 15:29:59 +0000
commit6927c0b622c8feaece907944bae3d4724f1e55a0 (patch)
treeef6c6140587b4975ddb5b61e50e7bc5b93a0dce8 /python/vyos/utils
parenta95063831f83dcfe458691b86407b70107b700ad (diff)
downloadvyos-1x-6927c0b622c8feaece907944bae3d4724f1e55a0.tar.gz
vyos-1x-6927c0b622c8feaece907944bae3d4724f1e55a0.zip
accel-ppp: T6187: use correct CPU counts adjusted for SMT
Diffstat (limited to 'python/vyos/utils')
-rw-r--r--python/vyos/utils/system.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/python/vyos/utils/system.py b/python/vyos/utils/system.py
index 5d41c0c05..55813a5f7 100644
--- a/python/vyos/utils/system.py
+++ b/python/vyos/utils/system.py
@@ -79,13 +79,6 @@ def sysctl_apply(sysctl_dict: dict[str, str], revert: bool = True) -> bool:
# everything applied
return True
-def get_half_cpus():
- """ return 1/2 of the numbers of available CPUs """
- cpu = os.cpu_count()
- if cpu > 1:
- cpu /= 2
- return int(cpu)
-
def find_device_file(device):
""" Recurively search /dev for the given device file and return its full path.
If no device file was found 'None' is returned """