diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-04-02 20:01:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-04-03 02:44:31 -0400 |
commit | 162a688e84df49c5bcc855a5e5bf812d0ec89ad5 (patch) | |
tree | 8c73ca1dd892688ef6523b4e3391fa361ccde61a | |
parent | 592a438ff3fea61d303c5784c209b3f1fd3e16df (diff) |
x86/amd/idle, clockevents: Use explicit broadcast control function
Replace the clockevents_notify() call with an explicit function call.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1528188.S1pjqkSL1P@vostro.rjw.lan
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/kernel/process.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 046e2d620bbe..e94b733de302 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/pm.h> | 11 | #include <linux/pm.h> |
12 | #include <linux/clockchips.h> | 12 | #include <linux/tick.h> |
13 | #include <linux/random.h> | 13 | #include <linux/random.h> |
14 | #include <linux/user-return-notifier.h> | 14 | #include <linux/user-return-notifier.h> |
15 | #include <linux/dmi.h> | 15 | #include <linux/dmi.h> |
@@ -377,11 +377,8 @@ static void amd_e400_idle(void) | |||
377 | 377 | ||
378 | if (!cpumask_test_cpu(cpu, amd_e400_c1e_mask)) { | 378 | if (!cpumask_test_cpu(cpu, amd_e400_c1e_mask)) { |
379 | cpumask_set_cpu(cpu, amd_e400_c1e_mask); | 379 | cpumask_set_cpu(cpu, amd_e400_c1e_mask); |
380 | /* | 380 | /* Force broadcast so ACPI can not interfere. */ |
381 | * Force broadcast so ACPI can not interfere. | 381 | tick_broadcast_force(); |
382 | */ | ||
383 | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_FORCE, | ||
384 | &cpu); | ||
385 | pr_info("Switch to broadcast mode on CPU%d\n", cpu); | 382 | pr_info("Switch to broadcast mode on CPU%d\n", cpu); |
386 | } | 383 | } |
387 | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu); | 384 | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu); |