diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-01-20 02:50:55 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-19 21:03:22 -0400 |
commit | 24cc67de62eebbda3ce0c46bdd56582c00dccd03 (patch) | |
tree | 7096191238ff09ab7a903674448cbf9e71c30f77 /arch/powerpc/kernel/cputable.c | |
parent | f6e17f9b0bf172a5813dfef0c03d0a25ba83b0de (diff) |
powerpc: Define CPU feature for Architected 2.06 HV mode
This bit indicates that we are operating in hypervisor mode on a CPU
compliant to architecture 2.06 or later (currently server only).
We set it on POWER7 and have a boot-time CPU setup function that
clears it if MSR:HV isn't set (booting under a hypervisor).
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/cputable.c')
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index b9602ee06deb..b65b4908d3c7 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -423,6 +423,8 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
423 | .dcache_bsize = 128, | 423 | .dcache_bsize = 128, |
424 | .oprofile_type = PPC_OPROFILE_POWER4, | 424 | .oprofile_type = PPC_OPROFILE_POWER4, |
425 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", | 425 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", |
426 | .cpu_setup = __setup_cpu_power7, | ||
427 | .cpu_restore = __restore_cpu_power7, | ||
426 | .platform = "power7", | 428 | .platform = "power7", |
427 | }, | 429 | }, |
428 | { /* Power7 */ | 430 | { /* Power7 */ |
@@ -439,6 +441,8 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
439 | .pmc_type = PPC_PMC_IBM, | 441 | .pmc_type = PPC_PMC_IBM, |
440 | .oprofile_cpu_type = "ppc64/power7", | 442 | .oprofile_cpu_type = "ppc64/power7", |
441 | .oprofile_type = PPC_OPROFILE_POWER4, | 443 | .oprofile_type = PPC_OPROFILE_POWER4, |
444 | .cpu_setup = __setup_cpu_power7, | ||
445 | .cpu_restore = __restore_cpu_power7, | ||
442 | .platform = "power7", | 446 | .platform = "power7", |
443 | }, | 447 | }, |
444 | { /* Power7+ */ | 448 | { /* Power7+ */ |
@@ -455,6 +459,8 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
455 | .pmc_type = PPC_PMC_IBM, | 459 | .pmc_type = PPC_PMC_IBM, |
456 | .oprofile_cpu_type = "ppc64/power7", | 460 | .oprofile_cpu_type = "ppc64/power7", |
457 | .oprofile_type = PPC_OPROFILE_POWER4, | 461 | .oprofile_type = PPC_OPROFILE_POWER4, |
462 | .cpu_setup = __setup_cpu_power7, | ||
463 | .cpu_restore = __restore_cpu_power7, | ||
458 | .platform = "power7+", | 464 | .platform = "power7+", |
459 | }, | 465 | }, |
460 | { /* Cell Broadband Engine */ | 466 | { /* Cell Broadband Engine */ |