smp.c (e532c37858fdcc18e9a91d24c2e22cd21aa22561) | smp.c (a7f290dad32ee34d931561b7943c858fe2aae503) |
---|---|
1/* 2 * SMP support for ppc. 3 * 4 * Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great 5 * deal of code from the sparc and intel versions. 6 * 7 * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu> 8 * --- 30 unchanged lines hidden (view full) --- 39#include <asm/pgtable.h> 40#include <asm/prom.h> 41#include <asm/smp.h> 42#include <asm/time.h> 43#include <asm/machdep.h> 44#include <asm/cputable.h> 45#include <asm/system.h> 46#include <asm/mpic.h> | 1/* 2 * SMP support for ppc. 3 * 4 * Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great 5 * deal of code from the sparc and intel versions. 6 * 7 * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu> 8 * --- 30 unchanged lines hidden (view full) --- 39#include <asm/pgtable.h> 40#include <asm/prom.h> 41#include <asm/smp.h> 42#include <asm/time.h> 43#include <asm/machdep.h> 44#include <asm/cputable.h> 45#include <asm/system.h> 46#include <asm/mpic.h> |
47#include <asm/systemcfg.h> | 47#include <asm/vdso_datapage.h> |
48#ifdef CONFIG_PPC64 49#include <asm/paca.h> 50#endif 51 52int smp_hw_index[NR_CPUS]; 53struct thread_info *secondary_ti; 54 55#ifdef DEBUG --- 310 unchanged lines hidden (view full) --- 366{ 367 unsigned int cpu = smp_processor_id(); 368 369 if (cpu == boot_cpuid) 370 return -EBUSY; 371 372 cpu_clear(cpu, cpu_online_map); 373#ifdef CONFIG_PPC64 | 48#ifdef CONFIG_PPC64 49#include <asm/paca.h> 50#endif 51 52int smp_hw_index[NR_CPUS]; 53struct thread_info *secondary_ti; 54 55#ifdef DEBUG --- 310 unchanged lines hidden (view full) --- 366{ 367 unsigned int cpu = smp_processor_id(); 368 369 if (cpu == boot_cpuid) 370 return -EBUSY; 371 372 cpu_clear(cpu, cpu_online_map); 373#ifdef CONFIG_PPC64 |
374 _systemcfg->processorCount--; | 374 vdso_data->processorCount--; |
375 fixup_irqs(cpu_online_map); 376#endif 377 return 0; 378} 379 380int generic_cpu_enable(unsigned int cpu) 381{ 382 /* Do the normal bootup if we haven't --- 190 unchanged lines hidden --- | 375 fixup_irqs(cpu_online_map); 376#endif 377 return 0; 378} 379 380int generic_cpu_enable(unsigned int cpu) 381{ 382 /* Do the normal bootup if we haven't --- 190 unchanged lines hidden --- |