Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176902
b: refs/heads/master
c: 6ad6c42
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Kyle McMartin committed Dec 16, 2009
1 parent d76a5fd commit 86a11f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f78df872d463ac43315916663b3e688ebb2422f
refs/heads/master: 6ad6c4245e4ed0b88f5ee379c04c834b52b272a6
9 changes: 6 additions & 3 deletions trunk/arch/parisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,14 @@ static int smp_debug_lvl = 0;
#define smp_debug(lvl, ...) do { } while(0)
#endif /* DEBUG_SMP */

DEFINE_SPINLOCK(smp_lock);

volatile struct task_struct *smp_init_current_idle_task;

/* track which CPU is booting */
static volatile int cpu_now_booting __cpuinitdata;

static int parisc_max_cpus __cpuinitdata = 1;

DEFINE_PER_CPU(spinlock_t, ipi_lock) = SPIN_LOCK_UNLOCKED;
static DEFINE_PER_CPU(spinlock_t, ipi_lock);

enum ipi_message_type {
IPI_NOP=0,
Expand Down Expand Up @@ -438,6 +436,11 @@ void __init smp_prepare_boot_cpu(void)
*/
void __init smp_prepare_cpus(unsigned int max_cpus)
{
int cpu;

for_each_possible_cpu(cpu)
spin_lock_init(&per_cpu(ipi_lock, cpu));

init_cpu_present(cpumask_of(0));

parisc_max_cpus = max_cpus;
Expand Down

0 comments on commit 86a11f8

Please sign in to comment.