smp.c (b2aaf8f74cdc84a9182f6cabf198b7763bcb9d40) | smp.c (98a79d6a50181ca1ecf7400eda01d5dc1bc0dbf0) |
---|---|
1/* 2** SMP Support 3** 4** Copyright (C) 1999 Walt Drummond <drummond@valinux.com> 5** Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com> 6** Copyright (C) 2001,2004 Grant Grundler <grundler@parisc-linux.org> 7** 8** Lots of stuff stolen from arch/alpha/kernel/smp.c --- 53 unchanged lines hidden (view full) --- 62DEFINE_SPINLOCK(smp_lock); 63 64volatile struct task_struct *smp_init_current_idle_task; 65 66static volatile int cpu_now_booting __read_mostly = 0; /* track which CPU is booting */ 67 68static int parisc_max_cpus __read_mostly = 1; 69 | 1/* 2** SMP Support 3** 4** Copyright (C) 1999 Walt Drummond <drummond@valinux.com> 5** Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com> 6** Copyright (C) 2001,2004 Grant Grundler <grundler@parisc-linux.org> 7** 8** Lots of stuff stolen from arch/alpha/kernel/smp.c --- 53 unchanged lines hidden (view full) --- 62DEFINE_SPINLOCK(smp_lock); 63 64volatile struct task_struct *smp_init_current_idle_task; 65 66static volatile int cpu_now_booting __read_mostly = 0; /* track which CPU is booting */ 67 68static int parisc_max_cpus __read_mostly = 1; 69 |
70/* online cpus are ones that we've managed to bring up completely 71 * possible cpus are all valid cpu 72 * present cpus are all detected cpu 73 * 74 * On startup we bring up the "possible" cpus. Since we discover 75 * CPUs later, we add them as hotplug, so the possible cpu mask is 76 * empty in the beginning. 77 */ 78 79cpumask_t cpu_online_map __read_mostly = CPU_MASK_NONE; /* Bitmap of online CPUs */ 80cpumask_t cpu_possible_map __read_mostly = CPU_MASK_ALL; /* Bitmap of Present CPUs */ 81 82EXPORT_SYMBOL(cpu_online_map); 83EXPORT_SYMBOL(cpu_possible_map); 84 | |
85DEFINE_PER_CPU(spinlock_t, ipi_lock) = SPIN_LOCK_UNLOCKED; 86 87enum ipi_message_type { 88 IPI_NOP=0, 89 IPI_RESCHEDULE=1, 90 IPI_CALL_FUNC, 91 IPI_CALL_FUNC_SINGLE, 92 IPI_CPU_START, --- 393 unchanged lines hidden --- | 70DEFINE_PER_CPU(spinlock_t, ipi_lock) = SPIN_LOCK_UNLOCKED; 71 72enum ipi_message_type { 73 IPI_NOP=0, 74 IPI_RESCHEDULE=1, 75 IPI_CALL_FUNC, 76 IPI_CALL_FUNC_SINGLE, 77 IPI_CPU_START, --- 393 unchanged lines hidden --- |