From 1c1ee91ac7f9dbe7a73c9a634d2c2a413ed43975 Mon Sep 17 00:00:00 2001 From: Ivan Kokshaysky Date: Mon, 24 Mar 2003 06:26:28 -0800 Subject: [PATCH] [PATCH] alpha: fix jiffies compile warning in smp.c Fix more annoying compile problems due to wrong types for comparing jiffies. This patch applies to alpha arch. From Thomas Weyergraf. Ivan. --- arch/alpha/kernel/smp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index 05e25b55e72cb..4cfc0a679a7df 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c @@ -112,7 +112,7 @@ smp_setup_percpu_timer(int cpuid) static void __init wait_boot_cpu_to_stop(int cpuid) { - long stop = jiffies + 10*HZ; + unsigned long stop = jiffies + 10*HZ; while (time_before(jiffies, stop)) { if (!smp_secondary_alive) @@ -349,7 +349,7 @@ secondary_cpu_start(int cpuid, struct task_struct *idle) { struct percpu_struct *cpu; struct pcb_struct *hwpcb, *ipcb; - long timeout; + unsigned long timeout; cpu = (struct percpu_struct *) ((char*)hwrpb @@ -428,7 +428,7 @@ static int __init smp_boot_one_cpu(int cpuid) { struct task_struct *idle; - long timeout; + unsigned long timeout; /* Cook up an idler for this guy. Note that the address we give to kernel_thread is irrelevant -- it's going to start @@ -816,7 +816,7 @@ smp_call_function_on_cpu (void (*func) (void *info), void *info, int retry, int wait, unsigned long to_whom) { struct smp_call_struct data; - long timeout; + unsigned long timeout; int num_cpus_to_call; data.func = func; -- 2.53.0