diff options
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
| -rw-r--r-- | arch/powerpc/kernel/irq.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 9729b23bfb0a..1d0848bba049 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c @@ -559,8 +559,13 @@ void exc_lvl_ctx_init(void)  #ifdef CONFIG_PPC64  		cpu_nr = i;  #else +#ifdef CONFIG_SMP  		cpu_nr = get_hard_smp_processor_id(i); +#else +		cpu_nr = 0;  #endif +#endif +  		memset((void *)critirq_ctx[cpu_nr], 0, THREAD_SIZE);  		tp = critirq_ctx[cpu_nr];  		tp->cpu = cpu_nr;  | 
