numaq.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * APIC driver for the IBM NUMAQ chipset.
  3. */
  4. #define APIC_DEFINITION 1
  5. #include <linux/threads.h>
  6. #include <linux/cpumask.h>
  7. #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>
  14. #include <asm/numaq/apicdef.h>
  15. #include <linux/smp.h>
  16. #include <asm/numaq/apic.h>
  17. #include <asm/numaq/ipi.h>
  18. #include <asm/numaq/mpparse.h>
  19. #include <asm/numaq/wakecpu.h>
  20. #include <asm/numaq.h>
  21. static int mps_oem_check(struct mp_config_table *mpc, char *oem,
  22. char *productid)
  23. {
  24. numaq_mps_oem_check(mpc, oem, productid);
  25. return found_numaq;
  26. }
  27. static int probe_numaq(void)
  28. {
  29. /* already know from get_memcfg_numaq() */
  30. return found_numaq;
  31. }
  32. /* Hook from generic ACPI tables.c */
  33. static int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
  34. {
  35. return 0;
  36. }
  37. static cpumask_t vector_allocation_domain(int cpu)
  38. {
  39. /* Careful. Some cpus do not strictly honor the set of cpus
  40. * specified in the interrupt destination when using lowest
  41. * priority interrupt delivery mode.
  42. *
  43. * In particular there was a hyperthreading cpu observed to
  44. * deliver interrupts to the wrong hyperthread when only one
  45. * hyperthread was specified in the interrupt desitination.
  46. */
  47. cpumask_t domain = { { [0] = APIC_ALL_CPUS, } };
  48. return domain;
  49. }
  50. struct genapic apic_numaq = APIC_INIT("NUMAQ", probe_numaq);