aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMatthew Garrett <[email protected]>2010-07-15 11:44:00 -0400
committerDave Jones <[email protected]>2010-08-03 13:47:02 -0400
commit6ebdf777ba034d2b54c99f28a4b18dabf286d8e5 (patch)
tree7e8f56588cbb44657a801a23e1589308f0cc553e /tools/perf/util/trace-event-scripting.c
parent0d9715d64fe118dd0957a29e344972b8d3f960e7 (diff)
[CPUFREQ] Fix PCC driver error path
The PCC cpufreq driver unmaps the mailbox address range if any CPUs fail to initialise, but doesn't do anything to remove the registered CPUs from the cpufreq core resulting in failures further down the line. We're better off simply returning a failure - the cpufreq core will unregister us cleanly if we end up with no successfully registered CPUs. Tidy up the failure path and also add a sanity check to ensure that the firmware gives us a realistic frequency - the core deals badly with that being set to 0. Signed-off-by: Matthew Garrett <[email protected]> Cc: Naga Chumbalkar <[email protected]> Signed-off-by: Dave Jones <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions