diff options
author | Bharat Bhushan <Bharat.Bhushan@freescale.com> | 2013-01-15 22:20:42 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-02-13 12:56:39 +0100 |
commit | ffe129ecd79779221fdb03305049ec8b5a8beb0f (patch) | |
tree | 0f4ebfb6eb4e3e5255010d1e36625813374c98e9 /arch/powerpc/kernel/asm-offsets.c | |
parent | dd92d6f2749c43ebab91c4762a1bc79e6523e936 (diff) | |
download | blackbird-op-linux-ffe129ecd79779221fdb03305049ec8b5a8beb0f.tar.gz blackbird-op-linux-ffe129ecd79779221fdb03305049ec8b5a8beb0f.zip |
KVM: PPC: booke: use vcpu reference from thread_struct
Like other places, use thread_struct to get vcpu reference.
Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 4e23ba2f3ca7..46f6afd2172a 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c @@ -117,7 +117,7 @@ int main(void) #ifdef CONFIG_KVM_BOOK3S_32_HANDLER DEFINE(THREAD_KVM_SVCPU, offsetof(struct thread_struct, kvm_shadow_vcpu)); #endif -#ifdef CONFIG_KVM_BOOKE_HV +#if defined(CONFIG_KVM) && defined(CONFIG_BOOKE) DEFINE(THREAD_KVM_VCPU, offsetof(struct thread_struct, kvm_vcpu)); #endif |