summit.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * APIC driver for the IBM "Summit" 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/summit/apicdef.h>
  15. #include <linux/smp.h>
  16. #include <asm/summit/apic.h>
  17. #include <asm/summit/ipi.h>
  18. #include <asm/summit/mpparse.h>
  19. #include <asm/mach-default/mach_wakecpu.h>
  20. static int probe_summit(void)
  21. {
  22. /* probed later in mptable/ACPI hooks */
  23. return 0;
  24. }
  25. static cpumask_t vector_allocation_domain(int cpu)
  26. {
  27. /* Careful. Some cpus do not strictly honor the set of cpus
  28. * specified in the interrupt destination when using lowest
  29. * priority interrupt delivery mode.
  30. *
  31. * In particular there was a hyperthreading cpu observed to
  32. * deliver interrupts to the wrong hyperthread when only one
  33. * hyperthread was specified in the interrupt desitination.
  34. */
  35. cpumask_t domain = { { [0] = APIC_ALL_CPUS, } };
  36. return domain;
  37. }
  38. struct genapic apic_summit = APIC_INIT("summit", probe_summit);