diff options
Diffstat (limited to 'arch/powerpc/platforms/iseries/setup.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index 13a8b1908ded..37ae07ee54a9 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <linux/major.h> | 26 | #include <linux/major.h> |
27 | #include <linux/root_dev.h> | 27 | #include <linux/root_dev.h> |
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include <linux/hrtimer.h> | ||
30 | #include <linux/tick.h> | ||
29 | 31 | ||
30 | #include <asm/processor.h> | 32 | #include <asm/processor.h> |
31 | #include <asm/machdep.h> | 33 | #include <asm/machdep.h> |
@@ -41,7 +43,6 @@ | |||
41 | #include <asm/time.h> | 43 | #include <asm/time.h> |
42 | #include <asm/paca.h> | 44 | #include <asm/paca.h> |
43 | #include <asm/cache.h> | 45 | #include <asm/cache.h> |
44 | #include <asm/sections.h> | ||
45 | #include <asm/abs_addr.h> | 46 | #include <asm/abs_addr.h> |
46 | #include <asm/iseries/hv_lp_config.h> | 47 | #include <asm/iseries/hv_lp_config.h> |
47 | #include <asm/iseries/hv_call_event.h> | 48 | #include <asm/iseries/hv_call_event.h> |
@@ -562,6 +563,7 @@ static void yield_shared_processor(void) | |||
562 | static void iseries_shared_idle(void) | 563 | static void iseries_shared_idle(void) |
563 | { | 564 | { |
564 | while (1) { | 565 | while (1) { |
566 | tick_nohz_stop_sched_tick(); | ||
565 | while (!need_resched() && !hvlpevent_is_pending()) { | 567 | while (!need_resched() && !hvlpevent_is_pending()) { |
566 | local_irq_disable(); | 568 | local_irq_disable(); |
567 | ppc64_runlatch_off(); | 569 | ppc64_runlatch_off(); |
@@ -575,6 +577,7 @@ static void iseries_shared_idle(void) | |||
575 | } | 577 | } |
576 | 578 | ||
577 | ppc64_runlatch_on(); | 579 | ppc64_runlatch_on(); |
580 | tick_nohz_restart_sched_tick(); | ||
578 | 581 | ||
579 | if (hvlpevent_is_pending()) | 582 | if (hvlpevent_is_pending()) |
580 | process_iSeries_events(); | 583 | process_iSeries_events(); |
@@ -590,6 +593,7 @@ static void iseries_dedicated_idle(void) | |||
590 | set_thread_flag(TIF_POLLING_NRFLAG); | 593 | set_thread_flag(TIF_POLLING_NRFLAG); |
591 | 594 | ||
592 | while (1) { | 595 | while (1) { |
596 | tick_nohz_stop_sched_tick(); | ||
593 | if (!need_resched()) { | 597 | if (!need_resched()) { |
594 | while (!need_resched()) { | 598 | while (!need_resched()) { |
595 | ppc64_runlatch_off(); | 599 | ppc64_runlatch_off(); |
@@ -606,6 +610,7 @@ static void iseries_dedicated_idle(void) | |||
606 | } | 610 | } |
607 | 611 | ||
608 | ppc64_runlatch_on(); | 612 | ppc64_runlatch_on(); |
613 | tick_nohz_restart_sched_tick(); | ||
609 | preempt_enable_no_resched(); | 614 | preempt_enable_no_resched(); |
610 | schedule(); | 615 | schedule(); |
611 | preempt_disable(); | 616 | preempt_disable(); |