diff options
-rw-r--r-- | Documentation/cpu-freq/core.txt | 4 | ||||
-rw-r--r-- | arch/arm/kernel/smp.c | 3 | ||||
-rw-r--r-- | arch/arm/kernel/smp_twd.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/viper.c | 3 | ||||
-rw-r--r-- | arch/powerpc/oprofile/op_model_cell.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/time_64.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/tsc.c | 3 | ||||
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 3 | ||||
-rw-r--r-- | drivers/pcmcia/sa11xx_base.c | 3 | ||||
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 3 | ||||
-rw-r--r-- | include/linux/cpufreq.h | 2 |
11 files changed, 7 insertions, 25 deletions
diff --git a/Documentation/cpu-freq/core.txt b/Documentation/cpu-freq/core.txt index ce0666e51036..0060d76b445f 100644 --- a/Documentation/cpu-freq/core.txt +++ b/Documentation/cpu-freq/core.txt | |||
@@ -92,7 +92,3 @@ values: | |||
92 | cpu - number of the affected CPU | 92 | cpu - number of the affected CPU |
93 | old - old frequency | 93 | old - old frequency |
94 | new - new frequency | 94 | new - new frequency |
95 | |||
96 | If the cpufreq core detects the frequency has changed while the system | ||
97 | was suspended, these notifiers are called with CPUFREQ_RESUMECHANGE as | ||
98 | second argument. | ||
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index b7b4c86e338b..7c4fada440f0 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -674,8 +674,7 @@ static int cpufreq_callback(struct notifier_block *nb, | |||
674 | } | 674 | } |
675 | 675 | ||
676 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || | 676 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || |
677 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new) || | 677 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { |
678 | (val == CPUFREQ_RESUMECHANGE || val == CPUFREQ_SUSPENDCHANGE)) { | ||
679 | loops_per_jiffy = cpufreq_scale(global_l_p_j_ref, | 678 | loops_per_jiffy = cpufreq_scale(global_l_p_j_ref, |
680 | global_l_p_j_ref_freq, | 679 | global_l_p_j_ref_freq, |
681 | freq->new); | 680 | freq->new); |
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 6591e26fc13f..dfc32130bc44 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c | |||
@@ -166,7 +166,7 @@ static int twd_cpufreq_transition(struct notifier_block *nb, | |||
166 | * frequency. The timer is local to a cpu, so cross-call to the | 166 | * frequency. The timer is local to a cpu, so cross-call to the |
167 | * changing cpu. | 167 | * changing cpu. |
168 | */ | 168 | */ |
169 | if (state == CPUFREQ_POSTCHANGE || state == CPUFREQ_RESUMECHANGE) | 169 | if (state == CPUFREQ_POSTCHANGE) |
170 | smp_call_function_single(freqs->cpu, twd_update_frequency, | 170 | smp_call_function_single(freqs->cpu, twd_update_frequency, |
171 | NULL, 1); | 171 | NULL, 1); |
172 | 172 | ||
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 29905b127ad9..41f27f667ca8 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -885,9 +885,6 @@ static int viper_cpufreq_notifier(struct notifier_block *nb, | |||
885 | viper_set_core_cpu_voltage(freq->new, 0); | 885 | viper_set_core_cpu_voltage(freq->new, 0); |
886 | } | 886 | } |
887 | break; | 887 | break; |
888 | case CPUFREQ_RESUMECHANGE: | ||
889 | viper_set_core_cpu_voltage(freq->new, 0); | ||
890 | break; | ||
891 | default: | 888 | default: |
892 | /* ignore */ | 889 | /* ignore */ |
893 | break; | 890 | break; |
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 | } |
diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c index c3d82b5f54ca..b397e053b872 100644 --- a/arch/sparc/kernel/time_64.c +++ b/arch/sparc/kernel/time_64.c | |||
@@ -659,8 +659,7 @@ static int sparc64_cpufreq_notifier(struct notifier_block *nb, unsigned long val | |||
659 | ft->clock_tick_ref = cpu_data(cpu).clock_tick; | 659 | ft->clock_tick_ref = cpu_data(cpu).clock_tick; |
660 | } | 660 | } |
661 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || | 661 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || |
662 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new) || | 662 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { |
663 | (val == CPUFREQ_RESUMECHANGE)) { | ||
664 | cpu_data(cpu).clock_tick = | 663 | cpu_data(cpu).clock_tick = |
665 | cpufreq_scale(ft->clock_tick_ref, | 664 | cpufreq_scale(ft->clock_tick_ref, |
666 | ft->ref_freq, | 665 | ft->ref_freq, |
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index cfbe99f88830..7a9296ab8834 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
@@ -914,8 +914,7 @@ static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val, | |||
914 | tsc_khz_ref = tsc_khz; | 914 | tsc_khz_ref = tsc_khz; |
915 | } | 915 | } |
916 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || | 916 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || |
917 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new) || | 917 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { |
918 | (val == CPUFREQ_RESUMECHANGE)) { | ||
919 | *lpj = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); | 918 | *lpj = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); |
920 | 919 | ||
921 | tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); | 920 | tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); |
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 24cd6ff9bb0b..e3aa9deb40d9 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -264,8 +264,7 @@ static void adjust_jiffies(unsigned long val, struct cpufreq_freqs *ci) | |||
264 | pr_debug("saving %lu as reference value for loops_per_jiffy; freq is %u kHz\n", | 264 | pr_debug("saving %lu as reference value for loops_per_jiffy; freq is %u kHz\n", |
265 | l_p_j_ref, l_p_j_ref_freq); | 265 | l_p_j_ref, l_p_j_ref_freq); |
266 | } | 266 | } |
267 | if ((val == CPUFREQ_POSTCHANGE && ci->old != ci->new) || | 267 | if (val == CPUFREQ_POSTCHANGE && ci->old != ci->new) { |
268 | (val == CPUFREQ_RESUMECHANGE || val == CPUFREQ_SUSPENDCHANGE)) { | ||
269 | loops_per_jiffy = cpufreq_scale(l_p_j_ref, l_p_j_ref_freq, | 268 | loops_per_jiffy = cpufreq_scale(l_p_j_ref, l_p_j_ref_freq, |
270 | ci->new); | 269 | ci->new); |
271 | pr_debug("scaling loops_per_jiffy to %lu for frequency %u kHz\n", | 270 | pr_debug("scaling loops_per_jiffy to %lu for frequency %u kHz\n", |
diff --git a/drivers/pcmcia/sa11xx_base.c b/drivers/pcmcia/sa11xx_base.c index 6eecd7cddf57..54d3089d157b 100644 --- a/drivers/pcmcia/sa11xx_base.c +++ b/drivers/pcmcia/sa11xx_base.c | |||
@@ -125,9 +125,6 @@ sa1100_pcmcia_frequency_change(struct soc_pcmcia_socket *skt, | |||
125 | if (freqs->new < freqs->old) | 125 | if (freqs->new < freqs->old) |
126 | sa1100_pcmcia_set_mecr(skt, freqs->new); | 126 | sa1100_pcmcia_set_mecr(skt, freqs->new); |
127 | break; | 127 | break; |
128 | case CPUFREQ_RESUMECHANGE: | ||
129 | sa1100_pcmcia_set_mecr(skt, freqs->new); | ||
130 | break; | ||
131 | } | 128 | } |
132 | 129 | ||
133 | return 0; | 130 | return 0; |
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index be33d2b0613b..7e0b62602632 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -1041,8 +1041,7 @@ static int sci_notifier(struct notifier_block *self, | |||
1041 | 1041 | ||
1042 | sci_port = container_of(self, struct sci_port, freq_transition); | 1042 | sci_port = container_of(self, struct sci_port, freq_transition); |
1043 | 1043 | ||
1044 | if ((phase == CPUFREQ_POSTCHANGE) || | 1044 | if (phase == CPUFREQ_POSTCHANGE) { |
1045 | (phase == CPUFREQ_RESUMECHANGE)) { | ||
1046 | struct uart_port *port = &sci_port->port; | 1045 | struct uart_port *port = &sci_port->port; |
1047 | 1046 | ||
1048 | spin_lock_irqsave(&port->lock, flags); | 1047 | spin_lock_irqsave(&port->lock, flags); |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 31c431e150a7..70929bcf1a9d 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -318,8 +318,6 @@ static inline void cpufreq_resume(void) {} | |||
318 | /* Transition notifiers */ | 318 | /* Transition notifiers */ |
319 | #define CPUFREQ_PRECHANGE (0) | 319 | #define CPUFREQ_PRECHANGE (0) |
320 | #define CPUFREQ_POSTCHANGE (1) | 320 | #define CPUFREQ_POSTCHANGE (1) |
321 | #define CPUFREQ_RESUMECHANGE (8) | ||
322 | #define CPUFREQ_SUSPENDCHANGE (9) | ||
323 | 321 | ||
324 | /* Policy Notifiers */ | 322 | /* Policy Notifiers */ |
325 | #define CPUFREQ_ADJUST (0) | 323 | #define CPUFREQ_ADJUST (0) |