History

cpumask: use set_cpu_active in init/main.c

cpu_active_map is deprecated in favor of cpu_active_mask, which is const for safety: we use accessors now (set_cpu_active) is we really want to make a change.

Rusty Russell committed 17 years ago

Commit 2b17fa51 parent 0451fb22 files · +4 −5Browse files

Showing the changes to init (1 of 2 files). Show all

Unified · Split

init/main.c+1−2
@@ -407,8 +407,7 @@ static void __init smp_init(void) · 406 unmodified lines
407407 * Set up the current CPU as possible to migrate to.
408408 * The other ones will be done by cpu_up/cpu_down()
409409 */
410− cpu = smp_processor_id();
411− cpu_set(cpu, cpu_active_map);
410+ set_cpu_active(smp_processor_id(), true);
412411
413412 /* FIXME: This should be done in userspace --RR */
414413 for_each_present_cpu(cpu) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t