search for: ntp_clear

Displaying 6 results from an estimated 6 matches for "ntp_clear".

2013 Jun 27
1
[PATCH 2/5] time: pass flags instead of multiple bools to timekeeping_update()
...tod_unregister_notifier); /* must hold timekeeper_lock */ -static void timekeeping_update(struct timekeeper *tk, bool clearntp, bool mirror) +static void timekeeping_update(struct timekeeper *tk, unsigned action) { - if (clearntp) { + if (action & TK_CLEAR_NTP) { tk->ntp_error = 0; ntp_clear(); } update_vsyscall(tk); update_pvclock_gtod(tk); - if (mirror) + if (action & TK_MIRROR) memcpy(&shadow_timekeeper, &timekeeper, sizeof(timekeeper)); } @@ -508,7 +511,7 @@ int do_settimeofday(const struct timespec *tv) tk_set_xtime(tk, tv); - timekeeping_update(tk,...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...00); + wall_sec = wallclock; + + wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - wall_sec); + wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - wall_nsec); + + xtime.tv_sec = wall_sec; + xtime.tv_nsec = wall_nsec; + + set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); + ntp_clear(); +} + +static int __init vmi_alarm_rate_setup(char* str) +{ + int alarm_rate; + if (get_option(&str, &alarm_rate) == 1 && alarm_rate > 0) { + alarm_hz = alarm_rate; + printk(KERN_WARNING "VMI Timer alarm HZ set to %d\n", alarm_hz); + } + return 1; +} +__setup("...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...00); + wall_sec = wallclock; + + wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - wall_sec); + wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - wall_nsec); + + xtime.tv_sec = wall_sec; + xtime.tv_nsec = wall_nsec; + + set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); + ntp_clear(); +} + +static int __init vmi_alarm_rate_setup(char* str) +{ + int alarm_rate; + if (get_option(&str, &alarm_rate) == 1 && alarm_rate > 0) { + alarm_hz = alarm_rate; + printk(KERN_WARNING "VMI Timer alarm HZ set to %d\n", alarm_hz); + } + return 1; +} +__setup("...
2013 Jun 19
14
[PATCH 2/4] time: add a notifier chain for when the system time is stepped
From: David Vrabel <david.vrabel@citrix.com> The high resolution timer code gets notified of step changes to the system time with clock_was_set() or clock_was_set_delayed() calls. If other parts of the kernel require similar notification there is no clear place to hook into. Add a clock_was_set atomic notifier chain (clock_was_set_notifier_list) and call this in place of clock_was_set().
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths