aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJacob Shin <[email protected]>2011-04-27 13:32:11 -0500
committerDave Jones <[email protected]>2011-05-04 11:50:57 -0400
commit27ecddc2a9f99ce4ac9a59a0acd77f7100b6d034 (patch)
tree941daeb656c519deeb8e0bd853944536e34ab80e /tools/perf/scripts/python
parent904cc1e637a00dba1b58e7752f485f90ebf2a568 (diff)
[CPUFREQ] CPU hotplug, re-create sysfs directory and symlinks
When we discover CPUs that are affected by each other's frequency/voltage transitions, the first CPU gets a sysfs directory created, and rest of the siblings get symlinks. Currently, when we hotplug off only the first CPU, all of the symlinks and the sysfs directory gets removed. Even though rest of the siblings are still online and functional, they are orphaned, and no longer governed by cpufreq. This patch, given the above scenario, creates a sysfs directory for the first sibling and symlinks for the rest of the siblings. Please note the recursive call, it was rather too ugly to roll it out. And the removal of redundant NULL setting (it is already taken care of near the top of the function). Signed-off-by: Jacob Shin <[email protected]> Acked-by: Mark Langsdorf <[email protected]> Reviewed-by: Thomas Renninger <[email protected]> Signed-off-by: Dave Jones <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions