psci_smp.c (f4b96f5e4ff8d86699c851c10245e102809b0331) | psci_smp.c (8bd26e3a7e49af2697449bbcb7187a39dc85d672) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 32 unchanged lines hidden (view full) --- 41 * migrate Migrate the context to a different CPU 42 * @cpuid cpuid of target CPU, as from MPIDR 43 * returns 0 success, < 0 on failure 44 * 45 */ 46 47extern void secondary_startup(void); 48 | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 32 unchanged lines hidden (view full) --- 41 * migrate Migrate the context to a different CPU 42 * @cpuid cpuid of target CPU, as from MPIDR 43 * returns 0 success, < 0 on failure 44 * 45 */ 46 47extern void secondary_startup(void); 48 |
49static int __cpuinit psci_boot_secondary(unsigned int cpu, 50 struct task_struct *idle) | 49static int psci_boot_secondary(unsigned int cpu, struct task_struct *idle) |
51{ 52 if (psci_ops.cpu_on) 53 return psci_ops.cpu_on(cpu_logical_map(cpu), 54 __pa(secondary_startup)); 55 return -ENODEV; 56} 57 58#ifdef CONFIG_HOTPLUG_CPU --- 26 unchanged lines hidden --- | 50{ 51 if (psci_ops.cpu_on) 52 return psci_ops.cpu_on(cpu_logical_map(cpu), 53 __pa(secondary_startup)); 54 return -ENODEV; 55} 56 57#ifdef CONFIG_HOTPLUG_CPU --- 26 unchanged lines hidden --- |