Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

Version 2.12.0 (unreleased)
---------------------------

* Bugfix: Remove the Linux version check, which was broken and no longer needed.
Patch by Michael Greenberg.

Version 2.11.0 (2026-11-08)
---------------------------

Expand Down
16 changes: 1 addition & 15 deletions pyperf/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,29 +437,15 @@ def available():
def __init__(self, system):
super().__init__('Linux scheduler', system)
self.ncpu = None
self.linux_version = None

def show(self):
self.ncpu = get_logical_cpu_count()
if self.ncpu is None:
self.error("Unable to get the number of CPUs")
return

release = os.uname()[2]
try:
version_txt = release.split('-', 1)[0]
self.linux_version = tuple(map(int, version_txt.split('.')))
except ValueError:
self.error("Failed to get the Linux version: release=%r" % release)
return

# isolcpus= parameter existed prior to 2.6.12-rc2 (2005)
# which is first commit of the Linux git repository
self.check_isolcpus()

# Commit 3fbfbf7a3b66ec424042d909f14ba2ddf4372ea8 added rcu_nocbs
if self.linux_version >= (3, 8):
self.check_rcu_nocbs()
self.check_rcu_nocbs()

def check_isolcpus(self):
isolated = get_isolated_cpus()
Expand Down
Loading