1 // SPDX-License-Identifier: GPL-2.0 1 2 /* 3 * SMP support for R-Mobile / SH-Mobile 4 * 5 * Copyright (C) 2010 Magnus Damm 6 * Copyright (C) 2011 Paul Mundt 7 * 8 * Based on vexpress, Copyright (C) 2002 ARM L 9 */ 10 #include <linux/init.h> 11 #include <asm/cacheflush.h> 12 #include <asm/smp_plat.h> 13 #include "common.h" 14 15 extern unsigned long shmobile_smp_fn[]; 16 extern unsigned long shmobile_smp_arg[]; 17 extern unsigned long shmobile_smp_mpidr[]; 18 19 void shmobile_smp_hook(unsigned int cpu, unsig 20 { 21 shmobile_smp_fn[cpu] = 0; 22 flush_cache_all(); 23 24 shmobile_smp_mpidr[cpu] = cpu_logical_ 25 shmobile_smp_fn[cpu] = fn; 26 shmobile_smp_arg[cpu] = arg; 27 flush_cache_all(); 28 } 29 30 #ifdef CONFIG_HOTPLUG_CPU 31 bool shmobile_smp_cpu_can_disable(unsigned int 32 { 33 return true; /* Hotplug of any CPU is 34 } 35 #endif 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.