Skip to content

Commit

Permalink
[MIPS] SMTC: Move MIPS_CPU_IPI_IRQ definition into header.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Aug 27, 2007
1 parent 45a98eb commit fe56b95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
* This file should be built into the kernel only if CONFIG_MIPS_MT_SMTC is set.
*/

#define MIPS_CPU_IPI_IRQ 1

#define LOCK_MT_PRA() \
local_irq_save(flags); \
mtflags = dmt()
Expand Down
10 changes: 10 additions & 0 deletions include/asm-mips/smtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,14 @@ extern void smtc_boot_secondary(int cpu, struct task_struct *t);

#define PARKED_INDEX ((unsigned int)0x80000000)

/*
* Define low-level interrupt mask for IPIs, if necessary.
* By default, use SW interrupt 1, which requires no external
* hardware support, but which works only for single-core
* MIPS MT systems.
*/
#ifndef MIPS_CPU_IPI_IRQ
#define MIPS_CPU_IPI_IRQ 1
#endif

#endif /* _ASM_SMTC_MT_H */

0 comments on commit fe56b95

Please sign in to comment.