aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/lg.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-04-22 00:40:41 -0400
committerRusty Russell <rusty@rustcorp.com.au>2013-04-22 02:15:03 -0400
commit6d0cda93c0d3c8bb0a553047c10f114c88c8af89 (patch)
tree6669d10bf2be3bb2407d8247060fd5721fb55d45 /drivers/lguest/lg.h
parent86935fc4ee4d95efe01b6c91cd5143fa4c38c02b (diff)
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 005929a3fd52..2eef40be4c04 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -17,6 +17,7 @@
17struct pgdir { 17struct pgdir {
18 unsigned long gpgdir; 18 unsigned long gpgdir;
19 bool switcher_mapped; 19 bool switcher_mapped;
20 int last_host_cpu;
20 pgd_t *pgdir; 21 pgd_t *pgdir;
21}; 22};
22 23