Просмотр исходного кода

cpumask: Use accessors code.: sparc64

Impact: use new API

Use the accessors rather than frobbing bits directly.  Most of this is
in arch code I haven't even compiled, but is straightforward.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Rusty Russell 16 лет назад
Родитель
Сommit
89229071c0
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      arch/sparc/kernel/mdesc.c
  2. 2 2
      arch/sparc/kernel/prom_64.c

+ 1 - 1
arch/sparc/kernel/mdesc.c

@@ -567,7 +567,7 @@ static void __init report_platform_properties(void)
 			max_cpu = NR_CPUS;
 		}
 		for (i = 0; i < max_cpu; i++)
-			cpu_set(i, cpu_possible_map);
+			set_cpu_possible(i, true);
 	}
 #endif
 

+ 2 - 2
arch/sparc/kernel/prom_64.c

@@ -518,8 +518,8 @@ void __init of_fill_in_cpu_data(void)
 		}
 
 #ifdef CONFIG_SMP
-		cpu_set(cpuid, cpu_present_map);
-		cpu_set(cpuid, cpu_possible_map);
+		set_cpu_present(cpuid, true);
+		set_cpu_possible(cpuid, true);
 #endif
 	}