1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01: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:
Valentin Schneider 2018-10-17 15:23:28 +01:00 committed by Marc Bonnici
parent fa41bb01d2
commit 6089eaf40a

View File

@ -48,7 +48,7 @@ class SchedProcFSNode(object):
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
def _ends_with_digits(node):