~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/kernel/apic/local.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Historical copyright notices:
  4  *
  5  * Copyright 2004 James Cleverdon, IBM.
  6  * (c) 1995 Alan Cox, Building #3 <alan@redhat.com>
  7  * (c) 1998-99, 2000 Ingo Molnar <mingo@redhat.com>
  8  * (c) 2002,2003 Andi Kleen, SuSE Labs.
  9  */
 10 
 11 #include <linux/jump_label.h>
 12 
 13 #include <asm/irq_vectors.h>
 14 #include <asm/apic.h>
 15 
 16 /* X2APIC */
 17 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest);
 18 u32 x2apic_get_apic_id(u32 id);
 19 
 20 void x2apic_send_IPI_all(int vector);
 21 void x2apic_send_IPI_allbutself(int vector);
 22 void x2apic_send_IPI_self(int vector);
 23 extern u32 x2apic_max_apicid;
 24 
 25 /* IPI */
 26 
 27 DECLARE_STATIC_KEY_FALSE(apic_use_ipi_shorthand);
 28 
 29 static inline unsigned int __prepare_ICR(unsigned int shortcut, int vector,
 30                                          unsigned int dest)
 31 {
 32         unsigned int icr = shortcut | dest;
 33 
 34         switch (vector) {
 35         default:
 36                 icr |= APIC_DM_FIXED | vector;
 37                 break;
 38         case NMI_VECTOR:
 39                 icr |= APIC_DM_NMI;
 40                 break;
 41         }
 42         return icr;
 43 }
 44 
 45 void default_init_apic_ldr(void);
 46 
 47 void apic_mem_wait_icr_idle(void);
 48 u32 apic_mem_wait_icr_idle_timeout(void);
 49 
 50 /*
 51  * This is used to send an IPI with no shorthand notation (the destination is
 52  * specified in bits 56 to 63 of the ICR).
 53  */
 54 void __default_send_IPI_dest_field(unsigned int mask, int vector, unsigned int dest);
 55 
 56 void default_send_IPI_single(int cpu, int vector);
 57 void default_send_IPI_single_phys(int cpu, int vector);
 58 void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, int vector);
 59 void default_send_IPI_mask_allbutself_phys(const struct cpumask *mask, int vector);
 60 void default_send_IPI_allbutself(int vector);
 61 void default_send_IPI_all(int vector);
 62 void default_send_IPI_self(int vector);
 63 
 64 #ifdef CONFIG_X86_32
 65 void default_send_IPI_mask_sequence_logical(const struct cpumask *mask, int vector);
 66 void default_send_IPI_mask_allbutself_logical(const struct cpumask *mask, int vector);
 67 void default_send_IPI_mask_logical(const struct cpumask *mask, int vector);
 68 void x86_32_probe_bigsmp_early(void);
 69 void x86_32_install_bigsmp(void);
 70 #else
 71 static inline void x86_32_probe_bigsmp_early(void) { }
 72 static inline void x86_32_install_bigsmp(void) { }
 73 #endif
 74 
 75 #ifdef CONFIG_X86_BIGSMP
 76 bool apic_bigsmp_possible(bool cmdline_selected);
 77 void apic_bigsmp_force(void);
 78 #else
 79 static inline bool apic_bigsmp_possible(bool cmdline_selected) { return false; };
 80 static inline void apic_bigsmp_force(void) { }
 81 #endif
 82 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php