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

TOMOYO Linux Cross Reference
Linux/arch/arm64/include/asm/smp.h

Version: ~ [ linux-5.19-rc3 ] ~ [ linux-5.18.5 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.48 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.123 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.199 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.248 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.284 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.319 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ 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 /*
  2  * Copyright (C) 2012 ARM Ltd.
  3  *
  4  * This program is free software; you can redistribute it and/or modify
  5  * it under the terms of the GNU General Public License version 2 as
  6  * published by the Free Software Foundation.
  7  *
  8  * This program is distributed in the hope that it will be useful,
  9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 11  * GNU General Public License for more details.
 12  *
 13  * You should have received a copy of the GNU General Public License
 14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 15  */
 16 #ifndef __ASM_SMP_H
 17 #define __ASM_SMP_H
 18 
 19 #include <linux/threads.h>
 20 #include <linux/cpumask.h>
 21 #include <linux/thread_info.h>
 22 
 23 #define raw_smp_processor_id() (current_thread_info()->cpu)
 24 
 25 struct seq_file;
 26 
 27 /*
 28  * generate IPI list text
 29  */
 30 extern void show_ipi_list(struct seq_file *p, int prec);
 31 
 32 /*
 33  * Called from C code, this handles an IPI.
 34  */
 35 extern void handle_IPI(int ipinr, struct pt_regs *regs);
 36 
 37 /*
 38  * Discover the set of possible CPUs and determine their
 39  * SMP operations.
 40  */
 41 extern void smp_init_cpus(void);
 42 
 43 /*
 44  * Provide a function to raise an IPI cross call on CPUs in callmap.
 45  */
 46 extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
 47 
 48 extern void (*__smp_cross_call)(const struct cpumask *, unsigned int);
 49 
 50 /*
 51  * Called from the secondary holding pen, this is the secondary CPU entry point.
 52  */
 53 asmlinkage void secondary_start_kernel(void);
 54 
 55 /*
 56  * Initial data for bringing up a secondary CPU.
 57  */
 58 struct secondary_data {
 59         void *stack;
 60 };
 61 extern struct secondary_data secondary_data;
 62 extern void secondary_entry(void);
 63 
 64 extern void arch_send_call_function_single_ipi(int cpu);
 65 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
 66 
 67 extern int __cpu_disable(void);
 68 
 69 extern void __cpu_die(unsigned int cpu);
 70 extern void cpu_die(void);
 71 
 72 #endif /* ifndef __ASM_SMP_H */
 73 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp