setup.c (527c465a3c8716d93201ae34b7fc52679610596d) | setup.c (787047eea24a2443c366679ae6b5a3873a33b64e) |
---|---|
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. --- 1001 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); | 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. --- 1001 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); |
1018 cpuinfo->cpu.hotpluggable = 1; | 1018 cpuinfo->cpu.hotpluggable = platform_can_hotplug_cpu(cpu); |
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 --- | 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 --- |