summaryrefslogtreecommitdiff
path: root/drivers/lguest/lg.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-04-22 04:40:41 (GMT)
committerRusty Russell <rusty@rustcorp.com.au>2013-04-22 06:15:03 (GMT)
commit6d0cda93c0d3c8bb0a553047c10f114c88c8af89 (patch)
tree6669d10bf2be3bb2407d8247060fd5721fb55d45 /drivers/lguest/lg.h
parent86935fc4ee4d95efe01b6c91cd5143fa4c38c02b (diff)
downloadlinux-6d0cda93c0d3c8bb0a553047c10f114c88c8af89.tar.xz
lguest: cache last cpu we ran on.
This optimizes the frobbing of our Switcher map. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lg.h')
-rw-r--r--drivers/lguest/lg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 005929a..2eef40b 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -17,6 +17,7 @@
struct pgdir {
unsigned long gpgdir;
bool switcher_mapped;
+ int last_host_cpu;
pgd_t *pgdir;
};