diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-04-22 00:40:41 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-04-22 02:15:03 -0400 |
commit | 6d0cda93c0d3c8bb0a553047c10f114c88c8af89 (patch) | |
tree | 6669d10bf2be3bb2407d8247060fd5721fb55d45 /drivers/lguest/lg.h | |
parent | 86935fc4ee4d95efe01b6c91cd5143fa4c38c02b (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.h | 1 |
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 @@ | |||
17 | struct pgdir { | 17 | struct 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 | ||