setup.c (787047eea24a2443c366679ae6b5a3873a33b64e) setup.c (be120397e7709d9d5ed88317a385ce864a2603bc)
1/*
2 * linux/arch/arm/kernel/setup.c
3 *
4 * Copyright (C) 1995-2001 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 17 unchanged lines hidden (view full) ---

26#include <linux/cpu.h>
27#include <linux/interrupt.h>
28#include <linux/smp.h>
29#include <linux/proc_fs.h>
30#include <linux/memblock.h>
31#include <linux/bug.h>
32#include <linux/compiler.h>
33#include <linux/sort.h>
1/*
2 * linux/arch/arm/kernel/setup.c
3 *
4 * Copyright (C) 1995-2001 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 17 unchanged lines hidden (view full) ---

26#include <linux/cpu.h>
27#include <linux/interrupt.h>
28#include <linux/smp.h>
29#include <linux/proc_fs.h>
30#include <linux/memblock.h>
31#include <linux/bug.h>
32#include <linux/compiler.h>
33#include <linux/sort.h>
34#include <linux/psci.h>
34
35#include <asm/unified.h>
36#include <asm/cp15.h>
37#include <asm/cpu.h>
38#include <asm/cputype.h>
39#include <asm/elf.h>
40#include <asm/procinfo.h>
41#include <asm/psci.h>

--- 925 unchanged lines hidden (view full) ---

967 request_standard_resources(mdesc);
968
969 if (mdesc->restart)
970 arm_pm_restart = mdesc->restart;
971
972 unflatten_device_tree();
973
974 arm_dt_init_cpu_maps();
35
36#include <asm/unified.h>
37#include <asm/cp15.h>
38#include <asm/cpu.h>
39#include <asm/cputype.h>
40#include <asm/elf.h>
41#include <asm/procinfo.h>
42#include <asm/psci.h>

--- 925 unchanged lines hidden (view full) ---

968 request_standard_resources(mdesc);
969
970 if (mdesc->restart)
971 arm_pm_restart = mdesc->restart;
972
973 unflatten_device_tree();
974
975 arm_dt_init_cpu_maps();
975 psci_init();
976 psci_dt_init();
976 xen_early_init();
977#ifdef CONFIG_SMP
978 if (is_smp()) {
979 if (!mdesc->smp_init || !mdesc->smp_init()) {
980 if (psci_smp_available())
981 smp_set_ops(&psci_smp_ops);
982 else if (mdesc->smp)
983 smp_set_ops(mdesc->smp);

--- 26 unchanged lines hidden (view full) ---

1010
1011
1012static int __init topology_init(void)
1013{
1014 int cpu;
1015
1016 for_each_possible_cpu(cpu) {
1017 struct cpuinfo_arm *cpuinfo = &per_cpu(cpu_data, cpu);
977 xen_early_init();
978#ifdef CONFIG_SMP
979 if (is_smp()) {
980 if (!mdesc->smp_init || !mdesc->smp_init()) {
981 if (psci_smp_available())
982 smp_set_ops(&psci_smp_ops);
983 else if (mdesc->smp)
984 smp_set_ops(mdesc->smp);

--- 26 unchanged lines hidden (view full) ---

1011
1012
1013static int __init topology_init(void)
1014{
1015 int cpu;
1016
1017 for_each_possible_cpu(cpu) {
1018 struct cpuinfo_arm *cpuinfo = &per_cpu(cpu_data, cpu);
1018 cpuinfo->cpu.hotpluggable = platform_can_hotplug_cpu(cpu);
1019 cpuinfo->cpu.hotpluggable = 1;
1019 register_cpu(&cpuinfo->cpu, cpu);
1020 }
1021
1022 return 0;
1023}
1024subsys_initcall(topology_init);
1025
1026#ifdef CONFIG_HAVE_PROC_CPU

--- 134 unchanged lines hidden ---
1020 register_cpu(&cpuinfo->cpu, cpu);
1021 }
1022
1023 return 0;
1024}
1025subsys_initcall(topology_init);
1026
1027#ifdef CONFIG_HAVE_PROC_CPU

--- 134 unchanged lines hidden ---