Skip to content

Commit

Permalink
xen: don't reload cr3 on suspend
Browse files Browse the repository at this point in the history
It isn't necessary, and it makes the code needlessly non-portable.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Oct 23, 2008
1 parent bea9211 commit ed6e5e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ static int xen_suspend(void *data)

BUG_ON(!irqs_disabled());

load_cr3(swapper_pg_dir);

err = device_power_down(PMSG_SUSPEND);
if (err) {
printk(KERN_ERR "xen_suspend: device_power_down failed: %d\n",
Expand Down

0 comments on commit ed6e5e5

Please sign in to comment.