diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-31 09:04:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 09:04:12 +0200 |
commit | 9edf1e7c23f13e682bbe4b2ae75ff4be897822ab (patch) | |
tree | c9f679fd3d51dbaa584ea7812bdaa4ae7c2c524b /python/vyos/utils/system.py | |
parent | 495bf823b7c7d51ea1506445e80debbde4d69a78 (diff) | |
parent | 92d44fb6aef675dfdc1e2433bbb7f9f6ff1b3abe (diff) | |
download | vyos-1x-9edf1e7c23f13e682bbe4b2ae75ff4be897822ab.tar.gz vyos-1x-9edf1e7c23f13e682bbe4b2ae75ff4be897822ab.zip |
Merge pull request #3220 from vyos/mergify/bp/sagitta/pr-3218
accel-ppp: T6187: use correct CPU counts adjusted for SMT (backport #3218)
Diffstat (limited to 'python/vyos/utils/system.py')
-rw-r--r-- | python/vyos/utils/system.py | 7 |
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 """ |