Skip to contentSkip to conversation

PPC64 replace schedule_timeout in pSeries_cpu_die

PATCH New Paul Mackerras 1 participant 1 message Jan 22, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 replace schedule_timeout in pSeries_cpu_die

This patch is from Nishanth Aravamudan <[email protected]>.

Replace schedule_timeout() with msleep to simplify the code and to express the delay in milliseconds instead of HZ.

arch/ppc64/kernel/pSeries_smp.c +1 -2
@@ -107,8 +107,7 @@ void pSeries_cpu_die(unsigned int cpu)
 		cpu_status = query_cpu_stopped(pcpu);
 		if (cpu_status == 0 || cpu_status == -1)
 			break;
-		set_current_state(TASK_UNINTERRUPTIBLE);
-		schedule_timeout(HZ/5);
+		msleep(200);
 	}
 	if (cpu_status != 0) {
 		printk("Querying DEAD? cpu %i (%i) shows %i\n",