smp.c (6f23fc47c1b2ac226704fb7294f43ed3b0965e51) | smp.c (4a1725281fc5b0009944b1c0e1d2c1dc311a09ec) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * SMP related functions 4 * 5 * Copyright IBM Corp. 1999, 2012 6 * Author(s): Denis Joseph Barrow, 7 * Martin Schwidefsky <schwidefsky@de.ibm.com>, 8 * --- 999 unchanged lines hidden (view full) --- 1008 possible = setup_possible_cpus ?: nr_cpu_ids; 1009 possible = min(possible, sclp_max); 1010 for (cpu = 0; cpu < possible && cpu < nr_cpu_ids; cpu++) 1011 set_cpu_possible(cpu, true); 1012} 1013 1014void __init smp_prepare_cpus(unsigned int max_cpus) 1015{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * SMP related functions 4 * 5 * Copyright IBM Corp. 1999, 2012 6 * Author(s): Denis Joseph Barrow, 7 * Martin Schwidefsky <schwidefsky@de.ibm.com>, 8 * --- 999 unchanged lines hidden (view full) --- 1008 possible = setup_possible_cpus ?: nr_cpu_ids; 1009 possible = min(possible, sclp_max); 1010 for (cpu = 0; cpu < possible && cpu < nr_cpu_ids; cpu++) 1011 set_cpu_possible(cpu, true); 1012} 1013 1014void __init smp_prepare_cpus(unsigned int max_cpus) 1015{ |
1016 /* request the 0x1201 emergency signal external interrupt */ | |
1017 if (register_external_irq(EXT_IRQ_EMERGENCY_SIG, do_ext_call_interrupt)) 1018 panic("Couldn't request external interrupt 0x1201"); | 1016 if (register_external_irq(EXT_IRQ_EMERGENCY_SIG, do_ext_call_interrupt)) 1017 panic("Couldn't request external interrupt 0x1201"); |
1019 /* request the 0x1202 external call external interrupt */ | 1018 ctl_set_bit(0, 14); |
1020 if (register_external_irq(EXT_IRQ_EXTERNAL_CALL, do_ext_call_interrupt)) 1021 panic("Couldn't request external interrupt 0x1202"); | 1019 if (register_external_irq(EXT_IRQ_EXTERNAL_CALL, do_ext_call_interrupt)) 1020 panic("Couldn't request external interrupt 0x1202"); |
1021 ctl_set_bit(0, 13); |
|
1022} 1023 1024void __init smp_prepare_boot_cpu(void) 1025{ 1026 struct pcpu *pcpu = pcpu_devices; 1027 1028 WARN_ON(!cpu_present(0) || !cpu_online(0)); 1029 pcpu->state = CPU_STATE_CONFIGURED; --- 288 unchanged lines hidden --- | 1022} 1023 1024void __init smp_prepare_boot_cpu(void) 1025{ 1026 struct pcpu *pcpu = pcpu_devices; 1027 1028 WARN_ON(!cpu_present(0) || !cpu_online(0)); 1029 pcpu->state = CPU_STATE_CONFIGURED; --- 288 unchanged lines hidden --- |