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

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

Version: ~ [ linux-5.11-rc3 ] ~ [ linux-5.10.7 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.89 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.167 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.215 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.251 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.251 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ 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.5 ] ~ [ 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 #ifndef CONFIG_SMP
 24 # error "<asm/smp.h> included in non-SMP build"
 25 #endif
 26 
 27 #define raw_smp_processor_id() (current_thread_info()->cpu)
 28 
 29 struct seq_file;
 30 
 31 /*
 32  * generate IPI list text
 33  */
 34 extern void show_ipi_list(struct seq_file *p, int prec);
 35 
 36 /*
 37  * Called from C code, this handles an IPI.
 38  */
 39 extern void handle_IPI(int ipinr, struct pt_regs *regs);
 40 
 41 /*
 42  * Setup the set of possible CPUs (via set_cpu_possible)
 43  */
 44 extern void smp_init_cpus(void);
 45 
 46 /*
 47  * Provide a function to raise an IPI cross call on CPUs in callmap.
 48  */
 49 extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
 50 
 51 /*
 52  * Called from the secondary holding pen, this is the secondary CPU entry point.
 53  */
 54 asmlinkage void secondary_start_kernel(void);
 55 
 56 /*
 57  * Initial data for bringing up a secondary CPU.
 58  */
 59 struct secondary_data {
 60         void *stack;
 61 };
 62 extern struct secondary_data secondary_data;
 63 extern void secondary_holding_pen(void);
 64 extern volatile unsigned long secondary_holding_pen_release;
 65 
 66 extern void arch_send_call_function_single_ipi(int cpu);
 67 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
 68 
 69 struct device_node;
 70 
 71 struct smp_enable_ops {
 72         const char      *name;
 73         int             (*init_cpu)(struct device_node *, int);
 74         int             (*prepare_cpu)(int);
 75 };
 76 
 77 extern const struct smp_enable_ops smp_spin_table_ops;
 78 extern const struct smp_enable_ops smp_psci_ops;
 79 
 80 #endif /* ifndef __ASM_SMP_H */
 81 

~ [ 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