commit | 6d0cda93c0d3c8bb0a553047c10f114c88c8af89 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Mon Apr 22 14:10:41 2013 +0930 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Mon Apr 22 15:45:03 2013 +0930 |
tree | 6669d10bf2be3bb2407d8247060fd5721fb55d45 | |
parent | 86935fc4ee4d95efe01b6c91cd5143fa4c38c02b [diff] [blame] |
lguest: cache last cpu we ran on. This optimizes the frobbing of our Switcher map. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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; };