setup.c (f615136c06a791364f5afa8b8ba965315a6440f1) | setup.c (49b424fedaf88d0fa9913082b8c1ccd012a8a972) |
---|---|
1/* 2 * arch/xtensa/kernel/setup.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 1995 Linus Torvalds --- 513 unchanged lines hidden (view full) --- 522static DEFINE_PER_CPU(struct cpu, cpu_data); 523 524static int __init topology_init(void) 525{ 526 int i; 527 528 for_each_possible_cpu(i) { 529 struct cpu *cpu = &per_cpu(cpu_data, i); | 1/* 2 * arch/xtensa/kernel/setup.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 1995 Linus Torvalds --- 513 unchanged lines hidden (view full) --- 522static DEFINE_PER_CPU(struct cpu, cpu_data); 523 524static int __init topology_init(void) 525{ 526 int i; 527 528 for_each_possible_cpu(i) { 529 struct cpu *cpu = &per_cpu(cpu_data, i); |
530 cpu->hotpluggable = !!i; |
|
530 register_cpu(cpu, i); 531 } 532 533 return 0; 534} 535subsys_initcall(topology_init); 536 537void machine_restart(char * cmd) --- 179 unchanged lines hidden --- | 531 register_cpu(cpu, i); 532 } 533 534 return 0; 535} 536subsys_initcall(topology_init); 537 538void machine_restart(char * cmd) --- 179 unchanged lines hidden --- |