aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2013-09-16 18:56:03 +0530
committerRafael J. Wysocki <[email protected]>2013-09-30 20:18:40 +0200
commit27047a603645d0885bcd72d7a0b6cce6e3c94ca7 (patch)
tree127e4ab6c9f749d1917014c7bb84e0d63655aad5 /tools/perf/scripts/python/net_dropmonitor.py
parent15c03dd4859ab16f9212238f29dd315654aa94f6 (diff)
cpufreq: Add new helper cpufreq_table_validate_and_show()
Almost every cpufreq driver is required to validate its frequency table with: cpufreq_frequency_table_cpuinfo() and then expose it to cpufreq core with: cpufreq_frequency_table_get_attr(). This patch creates another helper routine cpufreq_table_validate_and_show() that will do both these steps in a single call and will return 0 for success, error otherwise. This also fixes potential bugs in cpufreq drivers where people have called cpufreq_frequency_table_get_attr() before calling cpufreq_frequency_table_cpuinfo(), as the later may fail. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions