mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
lguest: Use this_cpu_ops
Use this_cpu_ops in a couple of places in lguest. Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
85c0647275
commit
c9f2954964
3 changed files with 4 additions and 4 deletions
|
|
@ -1137,7 +1137,7 @@ void free_guest_pagetable(struct lguest *lg)
|
|||
*/
|
||||
void map_switcher_in_guest(struct lg_cpu *cpu, struct lguest_pages *pages)
|
||||
{
|
||||
pte_t *switcher_pte_page = __get_cpu_var(switcher_pte_pages);
|
||||
pte_t *switcher_pte_page = __this_cpu_read(switcher_pte_pages);
|
||||
pte_t regs_pte;
|
||||
|
||||
#ifdef CONFIG_X86_PAE
|
||||
|
|
|
|||
|
|
@ -90,8 +90,8 @@ static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages)
|
|||
* meanwhile). If that's not the case, we pretend everything in the
|
||||
* Guest has changed.
|
||||
*/
|
||||
if (__get_cpu_var(lg_last_cpu) != cpu || cpu->last_pages != pages) {
|
||||
__get_cpu_var(lg_last_cpu) = cpu;
|
||||
if (__this_cpu_read(lg_last_cpu) != cpu || cpu->last_pages != pages) {
|
||||
__this_cpu_read(lg_last_cpu) = cpu;
|
||||
cpu->last_pages = pages;
|
||||
cpu->changed = CHANGED_ALL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue