Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a9eddc952870d29aa9df96ab862327eb6afa23d9
Commit:     a9eddc952870d29aa9df96ab862327eb6afa23d9
Parent:     e30fab3ad34aa8bfb55c9f0337d4a92a0595f41f
Author:     Zachary Amsden <[EMAIL PROTECTED]>
AuthorDate: Mon Mar 5 00:30:41 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Mar 5 07:57:52 2007 -0800

    [PATCH] vmi: fix nohz compile
    
    More goo from hrtimers integration.  We do compile and run properly with 
NO_HZ
    enabled.  There was a period when we didn't because of a missing export, but
    that was since fixed.
    
    And with the clocksource code now firmly in place, we can get rid of code 
that
    fixes up the wallclock, since this is done in the common infrastructure.  
This
    actually fixes a timer bug as well, that was caused by do_settimeofday no
    longer being callable with interrupts disabled due to the use of
    on_each_cpu().
    
    Signed-off-by: Zachary Amsden <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/i386/Kconfig          |    2 +-
 arch/i386/kernel/vmi.c     |    1 +
 arch/i386/kernel/vmitime.c |   15 ---------------
 3 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
index 2f76725..e970887 100644
--- a/arch/i386/Kconfig
+++ b/arch/i386/Kconfig
@@ -220,7 +220,7 @@ config PARAVIRT
 
 config VMI
        bool "VMI Paravirt-ops support"
-       depends on PARAVIRT && !NO_HZ
+       depends on PARAVIRT
        default y
        help
          VMI provides a paravirtualized interface to multiple hypervisors
diff --git a/arch/i386/kernel/vmi.c b/arch/i386/kernel/vmi.c
index a8aa57e..30e8253 100644
--- a/arch/i386/kernel/vmi.c
+++ b/arch/i386/kernel/vmi.c
@@ -934,6 +934,7 @@ void __init vmi_init(void)
 #ifdef CONFIG_X86_IO_APIC
        no_timer_check = 1;
 #endif
+       no_sync_cmos_clock = 1;
 
        local_irq_restore(flags & X86_EFLAGS_IF);
 }
diff --git a/arch/i386/kernel/vmitime.c b/arch/i386/kernel/vmitime.c
index 4bb218e..d217797 100644
--- a/arch/i386/kernel/vmitime.c
+++ b/arch/i386/kernel/vmitime.c
@@ -153,13 +153,6 @@ static void vmi_get_wallclock_ts(struct timespec *ts)
        ts->tv_sec = wallclock;
 }
 
-static void update_xtime_from_wallclock(void)
-{
-       struct timespec ts;
-       vmi_get_wallclock_ts(&ts);
-       do_settimeofday(&ts);
-}
-
 unsigned long vmi_get_wallclock(void)
 {
        struct timespec ts;
@@ -197,18 +190,10 @@ void __init vmi_time_init(void)
        set_intr_gate(LOCAL_TIMER_VECTOR, apic_vmi_timer_interrupt);
 #endif
 
-       no_sync_cmos_clock = 1;
-
-       vmi_get_wallclock_ts(&xtime);
-       set_normalized_timespec(&wall_to_monotonic,
-               -xtime.tv_sec, -xtime.tv_nsec);
-
        real_cycles_accounted_system = read_real_cycles();
-       update_xtime_from_wallclock();
        per_cpu(process_times_cycles_accounted_cpu, 0) = 
read_available_cycles();
 
        cycles_per_sec = vmi_timer_ops.get_cycle_frequency();
-
        cycles_per_jiffy = cycles_per_sec;
        (void)do_div(cycles_per_jiffy, HZ);
        cycles_per_alarm = cycles_per_sec;
-
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