]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/virt: the Freescale hypervisor driver doesn't need to check MSR[GS]
authorTimur Tabi <timur@freescale.com>
Thu, 17 May 2012 19:10:27 +0000 (14:10 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Sun, 25 Nov 2012 13:00:22 +0000 (07:00 -0600)
commit9655aa6b8034ebb69724dc4b54ad4f64a53096d1
tree41edbef893b343a1e092991f35f9f3b5eaf8b9a4
parente9c36b0b09f29f4edefa5bfcbc7247bb8419edce
drivers/virt: the Freescale hypervisor driver doesn't need to check MSR[GS]

The MSR[GS] bit indicates whether the kernel is running in processor guest
state mode, but such a check is unnecessary.  The driver already checks
for the /hypervisor node and the fsl,hv-version property, so it already
knows that it's running under the Freescale hypervisor.

There is nothing in the driver that inherently requires guest state,
anyway.

This fixes a break that can occur in some randconfig builds.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/virt/fsl_hypervisor.c