aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/iseries/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/iseries/setup.c')
-rw-r--r--arch/powerpc/platforms/iseries/setup.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c
index 0130f2619dac..7f8f0cda6a74 100644
--- a/arch/powerpc/platforms/iseries/setup.c
+++ b/arch/powerpc/platforms/iseries/setup.c
@@ -703,13 +703,10 @@ static void iseries_shared_idle(void)
703static void iseries_dedicated_idle(void) 703static void iseries_dedicated_idle(void)
704{ 704{
705 long oldval; 705 long oldval;
706 set_thread_flag(TIF_POLLING_NRFLAG);
706 707
707 while (1) { 708 while (1) {
708 oldval = test_and_clear_thread_flag(TIF_NEED_RESCHED); 709 if (!need_resched()) {
709
710 if (!oldval) {
711 set_thread_flag(TIF_POLLING_NRFLAG);
712
713 while (!need_resched()) { 710 while (!need_resched()) {
714 ppc64_runlatch_off(); 711 ppc64_runlatch_off();
715 HMT_low(); 712 HMT_low();
@@ -722,9 +719,6 @@ static void iseries_dedicated_idle(void)
722 } 719 }
723 720
724 HMT_medium(); 721 HMT_medium();
725 clear_thread_flag(TIF_POLLING_NRFLAG);
726 } else {
727 set_need_resched();
728 } 722 }
729 723
730 ppc64_runlatch_on(); 724 ppc64_runlatch_on();