Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c40a9f4719d36841a2d7ff4fe866dce7bfb454b7
Commit:     c40a9f4719d36841a2d7ff4fe866dce7bfb454b7
Parent:     2092aa277b0adfb8f4f47ab8a9ee00aff0ca7ed6
Author:     Glauber de Oliveira Costa <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 17 19:11:20 2008 -0200
Committer:  Rusty Russell <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 22:50:15 2008 +1100

    lguest: change last_guest to last_cpu
    
    in our model, a guest does not run in a cpu anymore: a virtual cpu
    does. So we change last_guest to last_cpu
    
    Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]>
    Signed-off-by: Rusty Russell <[EMAIL PROTECTED]>
---
 drivers/lguest/x86/core.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index 8c72355..10eab67 100644
--- a/drivers/lguest/x86/core.c
+++ b/drivers/lguest/x86/core.c
@@ -60,7 +60,7 @@ static struct lguest_pages *lguest_pages(unsigned int cpu)
                  (SWITCHER_ADDR + SHARED_SWITCHER_PAGES*PAGE_SIZE))[cpu]);
 }
 
-static DEFINE_PER_CPU(struct lguest *, last_guest);
+static DEFINE_PER_CPU(struct lg_cpu *, last_cpu);
 
 /*S:010
  * We approach the Switcher.
@@ -80,8 +80,8 @@ static void copy_in_guest_info(struct lg_cpu *cpu, struct 
lguest_pages *pages)
         * same Guest we ran last time (and that Guest hasn't run anywhere else
         * meanwhile).  If that's not the case, we pretend everything in the
         * Guest has changed. */
-       if (__get_cpu_var(last_guest) != lg || lg->last_pages != pages) {
-               __get_cpu_var(last_guest) = lg;
+       if (__get_cpu_var(last_cpu) != cpu || lg->last_pages != pages) {
+               __get_cpu_var(last_cpu) = cpu;
                lg->last_pages = pages;
                lg->changed = CHANGED_ALL;
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to