linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ACPI: processor_perflib: Simplify code and stop using CPUFREQ_START
@ 2017-01-05  6:04 Viresh Kumar
  2017-01-05  6:04 ` [PATCH 2/2] cpufreq: Remove CPUFREQ_START notifier event Viresh Kumar
  2017-01-28 11:32 ` [PATCH 1/2] ACPI: processor_perflib: Simplify code and stop using CPUFREQ_START Rafael J. Wysocki
  0 siblings, 2 replies; 6+ messages in thread
From: Viresh Kumar @ 2017-01-05  6:04 UTC (permalink / raw)
  To: Rafael Wysocki, Len Brown
  Cc: linaro-kernel, linux-pm, linux-kernel, Vincent Guittot,
	Viresh Kumar, linux-acpi

acpi_processor_ppc_notifier() can live without using CPUFREQ_START
(which is gonna be removed soon). Simplify it a bit.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
Rebased over: https://marc.info/?l=linux-kernel&m=148359167516831&w=2

 drivers/acpi/processor_perflib.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index f0b4a981b8d3..1ceea1143a1c 100644
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -75,14 +75,12 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,
 	struct acpi_processor *pr;
 	unsigned int ppc = 0;
 
-	if (event == CPUFREQ_START && ignore_ppc <= 0) {
-		ignore_ppc = 0;
-		return 0;
-	}
-
 	if (ignore_ppc)
 		return 0;
 
+	if (ignore_ppc < 0)
+		ignore_ppc = 0;
+
 	if (event != CPUFREQ_ADJUST)
 		return 0;
 
-- 
2.7.1.410.g6faf27b

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-30  7:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-05  6:04 [PATCH 1/2] ACPI: processor_perflib: Simplify code and stop using CPUFREQ_START Viresh Kumar
2017-01-05  6:04 ` [PATCH 2/2] cpufreq: Remove CPUFREQ_START notifier event Viresh Kumar
2017-01-28 11:32 ` [PATCH 1/2] ACPI: processor_perflib: Simplify code and stop using CPUFREQ_START Rafael J. Wysocki
2017-01-30  4:29   ` [PATCH V2 " Viresh Kumar
2017-01-30  7:07     ` Rafael J. Wysocki
2017-01-30  7:49       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).