X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Falpha%2Fkernel%2Fprocess.c;fp=arch%2Falpha%2Fkernel%2Fprocess.c;h=9924fd07743abfd5bb4cda9e78ac3e58ca72a9d7;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=b3a8a29803654eab232f478d7a1c58a9a483c1ee;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index b3a8a2980..9924fd077 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c @@ -8,6 +8,7 @@ * This file handles the architecture-dependent parts of process handling. */ +#include #include #include #include @@ -25,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -94,7 +94,7 @@ common_shutdown_1(void *generic_ptr) if (cpuid != boot_cpuid) { flags |= 0x00040000UL; /* "remain halted" */ *pflags = flags; - cpu_clear(cpuid, cpu_present_map); + clear_bit(cpuid, &cpu_present_mask); halt(); } #endif @@ -120,8 +120,8 @@ common_shutdown_1(void *generic_ptr) #ifdef CONFIG_SMP /* Wait for the secondaries to halt. */ - cpu_clear(boot_cpuid, cpu_present_map); - while (cpus_weight(cpu_present_map)) + cpu_clear(boot_cpuid, cpu_possible_map); + while (cpus_weight(cpu_possible_map)) barrier(); #endif @@ -475,7 +475,7 @@ out: */ unsigned long -thread_saved_pc(struct task_struct *t) +thread_saved_pc(task_t *t) { unsigned long base = (unsigned long)task_stack_page(t); unsigned long fp, sp = task_thread_info(t)->pcb.ksp;