search for: smp_set_op

Displaying 2 results from an estimated 2 matches for "smp_set_op".

Did you mean: smp_set_ops
2013 Apr 29
0
[PATCH v9 2/2] ARM: Enable selection of SMP operations at boot time
...iff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index dad3048..22cc863 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -770,10 +770,12 @@ void __init setup_arch(char **cmdline_p) psci_init(); #ifdef CONFIG_SMP if (is_smp()) { - if (psci_smp_available()) - smp_set_ops(&psci_smp_ops); - else if (mdesc->smp) - smp_set_ops(mdesc->smp); + if (!mdesc->smp_init || !mdesc->smp_init()) { + if (psci_smp_available()) + smp_set_ops(&psci_smp_ops); + else if (mdesc->smp) + smp_set_ops(mdesc->smp); + } smp_init_cpus(); } #endif...
2013 Apr 18
1
[PATCH] xen/arm: introduce xen_early_init, use PSCI on xen
...; @@ -176,11 +178,36 @@ static int __init xen_secondary_init(unsigned int cpu) return 0; } +static bool __init xen_smp_init(void) +{ +#ifdef CONFIG_SMP + /* If we are running on Xen, use PSCI if available. + * In any case do not try to use the native smp_ops. */ + if (psci_smp_available()) + smp_set_ops(&psci_smp_ops); + return true; +#endif +} + /* * see Documentation/devicetree/bindings/arm/xen.txt for the * documentation of the Xen Device Tree format. */ #define GRANT_TABLE_PHYSADDR 0 +void __init xen_early_init(void) +{ + struct device_node *node; + + node = of_find_compatible_nod...