mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
module/sched: Fix sched procfs parsing for >= 10 CPU systems
The regexp was a bit too greedy and would match 'cpu1' as the name of a 'cpu10' node.
This commit is contained in:
parent
fa41bb01d2
commit
6089eaf40a
@ -48,7 +48,7 @@ class SchedProcFSNode(object):
|
|||||||
MC
|
MC
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_re_procfs_node = re.compile(r"(?P<name>.*)(?P<digits>\d+)$")
|
_re_procfs_node = re.compile(r"(?P<name>.*\D)(?P<digits>\d+)$")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _ends_with_digits(node):
|
def _ends_with_digits(node):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user