smp-mt.c (0bd2af46839ad6262d25714a6ec0365db9d6b98f) | smp-mt.c (1417836e81c0ab8f5a0bfeafa90d3eaa41b2a067) |
---|---|
1/* 2 * This program is free software; you can distribute it and/or modify it 3 * under the terms of the GNU General Public License (Version 2) as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope it will be useful, but WITHOUT 7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 8 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --- 264 unchanged lines hidden (view full) --- 273 cpu_ipi_resched_irq = MIPSCPU_INT_BASE + MIPS_CPU_IPI_RESCHED_IRQ; 274 cpu_ipi_call_irq = MIPSCPU_INT_BASE + MIPS_CPU_IPI_CALL_IRQ; 275 276 setup_irq(cpu_ipi_resched_irq, &irq_resched); 277 setup_irq(cpu_ipi_call_irq, &irq_call); 278 279 /* need to mark IPI's as IRQ_PER_CPU */ 280 irq_desc[cpu_ipi_resched_irq].status |= IRQ_PER_CPU; | 1/* 2 * This program is free software; you can distribute it and/or modify it 3 * under the terms of the GNU General Public License (Version 2) as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope it will be useful, but WITHOUT 7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 8 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --- 264 unchanged lines hidden (view full) --- 273 cpu_ipi_resched_irq = MIPSCPU_INT_BASE + MIPS_CPU_IPI_RESCHED_IRQ; 274 cpu_ipi_call_irq = MIPSCPU_INT_BASE + MIPS_CPU_IPI_CALL_IRQ; 275 276 setup_irq(cpu_ipi_resched_irq, &irq_resched); 277 setup_irq(cpu_ipi_call_irq, &irq_call); 278 279 /* need to mark IPI's as IRQ_PER_CPU */ 280 irq_desc[cpu_ipi_resched_irq].status |= IRQ_PER_CPU; |
281 set_irq_handler(cpu_ipi_resched_irq, handle_percpu_irq); |
|
281 irq_desc[cpu_ipi_call_irq].status |= IRQ_PER_CPU; | 282 irq_desc[cpu_ipi_call_irq].status |= IRQ_PER_CPU; |
283 set_irq_handler(cpu_ipi_call_irq, handle_percpu_irq); |
|
282} 283 284/* 285 * Setup the PC, SP, and GP of a secondary processor and start it 286 * running! 287 * smp_bootstrap is the place to resume from 288 * __KSTK_TOS(idle) is apparently the stack pointer 289 * (unsigned long)idle->thread_info the gp --- 87 unchanged lines hidden --- | 284} 285 286/* 287 * Setup the PC, SP, and GP of a secondary processor and start it 288 * running! 289 * smp_bootstrap is the place to resume from 290 * __KSTK_TOS(idle) is apparently the stack pointer 291 * (unsigned long)idle->thread_info the gp --- 87 unchanged lines hidden --- |