aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/timer.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* Include some header files that are not automatically included on all archsStefano Stabellini2012-01-231-0/+1
| | | | | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* timer: Ensure that CPU field of a timer is read safely when lock-free.Keir Fraser2011-01-081-0/+1
| | | | | | | | | | Firstly, all updates must use atomic_write16(), and lock-free reads must use atomic_read16(). Secondly, we ensure ->cpu is the only field accessed without a lock. This requires us to place a special sentinel value in that field when a timer is killed, to avoid needing to read ->status outside a locked critical section. Signed-off-by: Keir Fraser <keir@xen.org>
* timers: Simplify implementation logic.Keir Fraser2010-08-181-7/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* timers: Track inactive timers and migrate them on cpu offline.Keir Fraser2010-06-021-53/+28
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Replace process_pending_timers() with process_pending_softirqs().Keir Fraser2009-12-221-6/+0
| | | | | | | | | This ensures that any critical softirqs are handled in a timely manner (e.g., TIME_CALIBRATE_SOFTIRQ) while still avoiding being preempted by the scheduler (by SCHEDULE_SOFTIRQ), which is the reason for avoiding use of do_softirq() directly. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Allow HPET to set timers more sloppily by seeing each CPU'sKeir Fraser2009-12-111-1/+2
| | | | | | | acceptable deadline range, rather than just deadline start. Signed-off-by: Wei Gang <gang.wei@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Align periodic vpts.Keir Fraser2009-02-131-0/+3
| | | | | | | Aligned periodic vpts can improve the HVM guest power consumption a lot, especially while the guest using high HZ such as 1000HZ. Signed-off-by: Wei Gang <gang.wei@intel.com>
* Change timer implementation to allow variable 'slop' in how lateKeir Fraser2008-10-311-1/+2
| | | | | | | | | timers are fired. The default continues to be 50us, but this can be configured on Xen's command line. Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Wei Gang <gang.wei@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fall back to a timer linked list when the timer heap overflows.Keir Fraser2008-08-271-10/+23
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Fix lapic timer stop issue in deep C stateKeir Fraser2008-05-211-0/+9
| | | | | | | | | | Local APIC timer may stop at deep C state (C3/C4...) entry/exit. this patch add the logic that use platform timer (HPET) to reenable local APIC timer at C state entry/exit. Signed-off-by: Wei Gang <gang.wei@intel.com> Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xen: New vcpu_op commands for setting periodic and single-shot timers.kfraser@localhost.localdomain2007-03-091-2/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Various softirq cleanups. Main one is to alwayskfraser@dhcp93.uk.xensource.com2006-06-301-0/+6
| | | | | | | | | | call smp_processor_id() after any softirq, as rescheduling may cause us to move to another processor on ia64 (spotted by Isaku Yamahata). Also get rid of many direct callers of do_softirq() by creating new function process_pending_timers(). Signed-off-by: Keir Fraser <keir@xensource.com>
* More details on ordering and safety of the Xen timer API.kaf24@firebug.cl.cam.ac.uk2006-02-091-10/+20
| | | | | | | | | | Most functions are safe to call after a timer structure has been initialised to all zeroes, as long as they are *never* called concurrently with init_timer(). Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix Xen timer interface to allow migration of timerskaf24@firebug.cl.cam.ac.uk2006-02-081-0/+6
| | | | | | | | | among CPUs (using new migrate_timer() call). Fix the locking protocol in light of this addition. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add a new timer operation kill_timer(). Effectively thekaf24@firebug.cl.cam.ac.uk2006-01-131-0/+9
| | | | | | | | | | | 'opposite' of init_timer(), it marks the end of a timer's lifetime. After this call the timer will not be pending, its callback handler will not be running, and future calls to set_timer() will silently fail. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add missing renamed files. Oops.kaf24@firebug.cl.cam.ac.uk2006-01-131-0/+81
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.970 (40d07ec6txkdBLgbvygm7O1rxKCY1A)kaf24@scramble.cl.cam.ac.uk2004-06-161-81/+0
| | | | | Cleanups allowed by new ngio world.
* bitkeeper revision 1.821 (406007d6uu0vZYDxa9P1ZfNO9kF_Cg)kaf24@scramble.cl.cam.ac.uk2004-03-231-0/+81
Many files: xeno -> xen renames. ide-xen.c: Rename: xen/drivers/ide/ide-xeno.c -> xen/drivers/ide/ide-xen.c xen.lds: Rename: xen/arch/i386/xeno.lds -> xen/arch/i386/xen.lds Many files: mvdir