Skip to content

Commit

Permalink
drivers/virt: the Freescale hypervisor driver doesn't need to check M…
Browse files Browse the repository at this point in the history
…SR[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>
  • Loading branch information
Timur Tabi authored and Kumar Gala committed Nov 25, 2012
1 parent e9c36b0 commit 9655aa6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/virt/fsl_hypervisor.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,6 @@ static int has_fsl_hypervisor(void)
struct device_node *node;
int ret;

if (!(mfmsr() & MSR_GS))
return 0;

node = of_find_node_by_path("/hypervisor");
if (!node)
return 0;
Expand Down

0 comments on commit 9655aa6

Please sign in to comment.