smp.c (e23c34bb41da65f354fb7eee04300c56ee48f60c) | smp.c (2751b628c97e66e61f482935ca59148751972941) |
---|---|
1/* 2 * SMP support for BPA machines. 3 * 4 * Dave Engebretsen, Peter Bergner, and 5 * Mike Corrigan {engebret|bergner|mikec}@us.ibm.com 6 * 7 * Plus various changes from other IBM teams... 8 * --- 26 unchanged lines hidden (view full) --- 35#include <asm/prom.h> 36#include <asm/smp.h> 37#include <asm/paca.h> 38#include <asm/machdep.h> 39#include <asm/cputable.h> 40#include <asm/firmware.h> 41#include <asm/rtas.h> 42#include <asm/cputhreads.h> | 1/* 2 * SMP support for BPA machines. 3 * 4 * Dave Engebretsen, Peter Bergner, and 5 * Mike Corrigan {engebret|bergner|mikec}@us.ibm.com 6 * 7 * Plus various changes from other IBM teams... 8 * --- 26 unchanged lines hidden (view full) --- 35#include <asm/prom.h> 36#include <asm/smp.h> 37#include <asm/paca.h> 38#include <asm/machdep.h> 39#include <asm/cputable.h> 40#include <asm/firmware.h> 41#include <asm/rtas.h> 42#include <asm/cputhreads.h> |
43#include <asm/code-patching.h> |
|
43 44#include "interrupt.h" 45#include <asm/udbg.h> 46 47#ifdef DEBUG 48#define DBG(fmt...) udbg_printf(fmt) 49#else 50#define DBG(fmt...) --- 14 unchanged lines hidden (view full) --- 65 * 66 * Returns: 67 * 0 - failure 68 * 1 - success 69 */ 70static inline int smp_startup_cpu(unsigned int lcpu) 71{ 72 int status; | 44 45#include "interrupt.h" 46#include <asm/udbg.h> 47 48#ifdef DEBUG 49#define DBG(fmt...) udbg_printf(fmt) 50#else 51#define DBG(fmt...) --- 14 unchanged lines hidden (view full) --- 66 * 67 * Returns: 68 * 0 - failure 69 * 1 - success 70 */ 71static inline int smp_startup_cpu(unsigned int lcpu) 72{ 73 int status; |
73 unsigned long start_here = __pa((u32)*((unsigned long *) 74 generic_secondary_smp_init)); | 74 unsigned long start_here = 75 __pa(ppc_function_entry(generic_secondary_smp_init)); |
75 unsigned int pcpu; 76 int start_cpu; 77 78 if (cpumask_test_cpu(lcpu, &of_spin_map)) 79 /* Already started by OF and sitting in spin loop */ 80 return 1; 81 82 pcpu = get_hard_smp_processor_id(lcpu); --- 92 unchanged lines hidden --- | 76 unsigned int pcpu; 77 int start_cpu; 78 79 if (cpumask_test_cpu(lcpu, &of_spin_map)) 80 /* Already started by OF and sitting in spin loop */ 81 return 1; 82 83 pcpu = get_hard_smp_processor_id(lcpu); --- 92 unchanged lines hidden --- |