[PATCH] powerpc: merge code values for identifying platforms
This patch merges platform codes. systemcfg->platform is no longer used, systemcfg use in general is deprecated as much as possible (and renamed _systemcfg before it gets completely moved elsewhere in a future patch), _machine is now used on ppc64 along as ppc32. Platform codes aren't gone yet but we are getting a step closer. A bunch of asm code in head[_64].S is also turned into C code. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Этот коммит содержится в:
@@ -46,6 +46,7 @@
|
||||
#include <asm/rtas.h>
|
||||
#include <asm/pSeries_reconfig.h>
|
||||
#include <asm/mpic.h>
|
||||
#include <asm/systemcfg.h>
|
||||
|
||||
#include "plpar_wrappers.h"
|
||||
|
||||
@@ -96,7 +97,7 @@ int pSeries_cpu_disable(void)
|
||||
int cpu = smp_processor_id();
|
||||
|
||||
cpu_clear(cpu, cpu_online_map);
|
||||
systemcfg->processorCount--;
|
||||
_systemcfg->processorCount--;
|
||||
|
||||
/*fix boot_cpuid here*/
|
||||
if (cpu == boot_cpuid)
|
||||
@@ -441,7 +442,7 @@ void __init smp_init_pSeries(void)
|
||||
smp_ops->cpu_die = pSeries_cpu_die;
|
||||
|
||||
/* Processors can be added/removed only on LPAR */
|
||||
if (systemcfg->platform == PLATFORM_PSERIES_LPAR)
|
||||
if (platform_is_lpar())
|
||||
pSeries_reconfig_notifier_register(&pSeries_smp_nb);
|
||||
#endif
|
||||
|
||||
|
Ссылка в новой задаче
Block a user