process.c (b2aaf8f74cdc84a9182f6cabf198b7763bcb9d40) | process.c (98a79d6a50181ca1ecf7400eda01d5dc1bc0dbf0) |
---|---|
1/* 2 * linux/arch/alpha/kernel/process.c 3 * 4 * Copyright (C) 1995 Linus Torvalds 5 */ 6 7/* 8 * This file handles the architecture-dependent parts of process handling. --- 80 unchanged lines hidden (view full) --- 89 flags &= ~0x00ff0001UL; 90 91#ifdef CONFIG_SMP 92 /* Secondaries halt here. */ 93 if (cpuid != boot_cpuid) { 94 flags |= 0x00040000UL; /* "remain halted" */ 95 *pflags = flags; 96 cpu_clear(cpuid, cpu_present_map); | 1/* 2 * linux/arch/alpha/kernel/process.c 3 * 4 * Copyright (C) 1995 Linus Torvalds 5 */ 6 7/* 8 * This file handles the architecture-dependent parts of process handling. --- 80 unchanged lines hidden (view full) --- 89 flags &= ~0x00ff0001UL; 90 91#ifdef CONFIG_SMP 92 /* Secondaries halt here. */ 93 if (cpuid != boot_cpuid) { 94 flags |= 0x00040000UL; /* "remain halted" */ 95 *pflags = flags; 96 cpu_clear(cpuid, cpu_present_map); |
97 cpu_clear(cpuid, cpu_possible_map); |
|
97 halt(); 98 } 99#endif 100 101 if (how->mode == LINUX_REBOOT_CMD_RESTART) { 102 if (!how->restart_cmd) { 103 flags |= 0x00020000UL; /* "cold bootstrap" */ 104 } else { --- 10 unchanged lines hidden (view full) --- 115 } else { 116 flags |= 0x00040000UL; /* "remain halted" */ 117 } 118 *pflags = flags; 119 120#ifdef CONFIG_SMP 121 /* Wait for the secondaries to halt. */ 122 cpu_clear(boot_cpuid, cpu_present_map); | 98 halt(); 99 } 100#endif 101 102 if (how->mode == LINUX_REBOOT_CMD_RESTART) { 103 if (!how->restart_cmd) { 104 flags |= 0x00020000UL; /* "cold bootstrap" */ 105 } else { --- 10 unchanged lines hidden (view full) --- 116 } else { 117 flags |= 0x00040000UL; /* "remain halted" */ 118 } 119 *pflags = flags; 120 121#ifdef CONFIG_SMP 122 /* Wait for the secondaries to halt. */ 123 cpu_clear(boot_cpuid, cpu_present_map); |
124 cpu_clear(boot_cpuid, cpu_possible_map); |
|
123 while (cpus_weight(cpu_present_map)) 124 barrier(); 125#endif 126 127 /* If booted from SRM, reset some of the original environment. */ 128 if (alpha_using_srm) { 129#ifdef CONFIG_DUMMY_CONSOLE 130 /* If we've gotten here after SysRq-b, leave interrupt --- 327 unchanged lines hidden --- | 125 while (cpus_weight(cpu_present_map)) 126 barrier(); 127#endif 128 129 /* If booted from SRM, reset some of the original environment. */ 130 if (alpha_using_srm) { 131#ifdef CONFIG_DUMMY_CONSOLE 132 /* If we've gotten here after SysRq-b, leave interrupt --- 327 unchanged lines hidden --- |