blob: 3679e2255645a011e9239d687fc6e6dd85ccc3ac [file] [log] [blame]
Yinghai Lud49c4282008-06-08 18:31:54 -07001/*
2 * APIC driver for the IBM NUMAQ chipset.
3 */
4#define APIC_DEFINITION 1
5#include <linux/threads.h>
6#include <linux/cpumask.h>
Yinghai Lud49c4282008-06-08 18:31:54 -07007#include <asm/mpspec.h>
8#include <asm/genapic.h>
9#include <asm/fixmap.h>
10#include <asm/apicdef.h>
11#include <linux/kernel.h>
12#include <linux/string.h>
13#include <linux/init.h>
Yinghai Luedb181a2008-07-25 02:17:55 -070014#include <asm/numaq/apicdef.h>
Yinghai Lu4696ca52008-07-11 18:43:10 -070015#include <linux/smp.h>
Yinghai Luedb181a2008-07-25 02:17:55 -070016#include <asm/numaq/apic.h>
17#include <asm/numaq/ipi.h>
18#include <asm/numaq/mpparse.h>
19#include <asm/numaq/wakecpu.h>
Yinghai Lud49c4282008-06-08 18:31:54 -070020#include <asm/numaq.h>
21
Jaswinder Singh Rajputf29521e2009-01-03 15:46:57 +053022static int mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
Yinghai Lud49c4282008-06-08 18:31:54 -070023{
24 numaq_mps_oem_check(mpc, oem, productid);
25 return found_numaq;
26}
27
28static int probe_numaq(void)
29{
30 /* already know from get_memcfg_numaq() */
31 return found_numaq;
32}
33
34/* Hook from generic ACPI tables.c */
35static int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
36{
37 return 0;
38}
39
Mike Travise7986732008-12-16 17:33:52 -080040static void vector_allocation_domain(int cpu, cpumask_t *retmask)
Yinghai Lu497c9a12008-08-19 20:50:28 -070041{
42 /* Careful. Some cpus do not strictly honor the set of cpus
43 * specified in the interrupt destination when using lowest
44 * priority interrupt delivery mode.
45 *
46 * In particular there was a hyperthreading cpu observed to
47 * deliver interrupts to the wrong hyperthread when only one
48 * hyperthread was specified in the interrupt desitination.
49 */
Mike Travise7986732008-12-16 17:33:52 -080050 *retmask = (cpumask_t){ { [0] = APIC_ALL_CPUS, } };
Yinghai Lu497c9a12008-08-19 20:50:28 -070051}
52
Yinghai Lud49c4282008-06-08 18:31:54 -070053struct genapic apic_numaq = APIC_INIT("NUMAQ", probe_numaq);