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

TOMOYO Linux Cross Reference
Linux/arch/mips/kernel/smp-up.c

Version: ~ [ linux-5.6 ] ~ [ linux-5.5.13 ] ~ [ linux-5.4.28 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.113 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.174 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.217 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.217 ] ~ [ 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.82 ] ~ [ 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-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ 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  * This file is subject to the terms and conditions of the GNU General Public
  3  * License.  See the file "COPYING" in the main directory of this archive
  4  * for more details.
  5  *
  6  * Copyright (C) 2006, 07 by Ralf Baechle (ralf@linux-mips.org)
  7  *
  8  * Symmetric Uniprocessor (TM) Support
  9  */
 10 #include <linux/kernel.h>
 11 #include <linux/sched.h>
 12 
 13 /*
 14  * Send inter-processor interrupt
 15  */
 16 static void up_send_ipi_single(int cpu, unsigned int action)
 17 {
 18         panic(KERN_ERR "%s called", __func__);
 19 }
 20 
 21 static inline void up_send_ipi_mask(const struct cpumask *mask,
 22                                     unsigned int action)
 23 {
 24         panic(KERN_ERR "%s called", __func__);
 25 }
 26 
 27 /*
 28  *  After we've done initial boot, this function is called to allow the
 29  *  board code to clean up state, if needed
 30  */
 31 static void up_init_secondary(void)
 32 {
 33 }
 34 
 35 static void up_smp_finish(void)
 36 {
 37 }
 38 
 39 /* Hook for after all CPUs are online */
 40 static void up_cpus_done(void)
 41 {
 42 }
 43 
 44 /*
 45  * Firmware CPU startup hook
 46  */
 47 static void up_boot_secondary(int cpu, struct task_struct *idle)
 48 {
 49 }
 50 
 51 static void __init up_smp_setup(void)
 52 {
 53 }
 54 
 55 static void __init up_prepare_cpus(unsigned int max_cpus)
 56 {
 57 }
 58 
 59 #ifdef CONFIG_HOTPLUG_CPU
 60 static int up_cpu_disable(void)
 61 {
 62         return -ENOSYS;
 63 }
 64 
 65 static void up_cpu_die(unsigned int cpu)
 66 {
 67         BUG();
 68 }
 69 #endif
 70 
 71 struct plat_smp_ops up_smp_ops = {
 72         .send_ipi_single        = up_send_ipi_single,
 73         .send_ipi_mask          = up_send_ipi_mask,
 74         .init_secondary         = up_init_secondary,
 75         .smp_finish             = up_smp_finish,
 76         .cpus_done              = up_cpus_done,
 77         .boot_secondary         = up_boot_secondary,
 78         .smp_setup              = up_smp_setup,
 79         .prepare_cpus           = up_prepare_cpus,
 80 #ifdef CONFIG_HOTPLUG_CPU
 81         .cpu_disable            = up_cpu_disable,
 82         .cpu_die                = up_cpu_die,
 83 #endif
 84 };
 85 

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