diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-19 01:54:58 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-19 09:10:24 -0400 |
commit | 0b443ead714f0cba797a7f2476dd756f22b5421e (patch) | |
tree | ed27366834ff0740fddbba8ce4f0e7ae59a8188e /arch/powerpc/oprofile | |
parent | 9832235f3f880ab2e58141885e3b5ed3b158c0fb (diff) |
cpufreq: remove unused notifier: CPUFREQ_{SUSPENDCHANGE|RESUMECHANGE}
Two cpufreq notifiers CPUFREQ_RESUMECHANGE and CPUFREQ_SUSPENDCHANGE have
not been used for some time, so remove them to clean up code a bit.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/powerpc/oprofile')
-rw-r--r-- | arch/powerpc/oprofile/op_model_cell.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index 1f0ebdeea5f7..863d89386f60 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c | |||
@@ -1121,8 +1121,7 @@ oprof_cpufreq_notify(struct notifier_block *nb, unsigned long val, void *data) | |||
1121 | int ret = 0; | 1121 | int ret = 0; |
1122 | struct cpufreq_freqs *frq = data; | 1122 | struct cpufreq_freqs *frq = data; |
1123 | if ((val == CPUFREQ_PRECHANGE && frq->old < frq->new) || | 1123 | if ((val == CPUFREQ_PRECHANGE && frq->old < frq->new) || |
1124 | (val == CPUFREQ_POSTCHANGE && frq->old > frq->new) || | 1124 | (val == CPUFREQ_POSTCHANGE && frq->old > frq->new)) |
1125 | (val == CPUFREQ_RESUMECHANGE || val == CPUFREQ_SUSPENDCHANGE)) | ||
1126 | set_spu_profiling_frequency(frq->new, spu_cycle_reset); | 1125 | set_spu_profiling_frequency(frq->new, spu_cycle_reset); |
1127 | return ret; | 1126 | return ret; |
1128 | } | 1127 | } |