diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-12 15:04:59 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-12 15:05:14 -0400 |
| commit | 807f4f8cdd5b65a8a5fcfda266c074f6a23818dd (patch) | |
| tree | 395afdf45badd02d03871c827b8baa850cbe5841 /arch/x86/xen/time.c | |
| parent | 1a2217a9516b134e0a0e54cb4629e1e075d97b17 (diff) | |
| parent | 8daf14cf56816303d64d1a705fcbc389211ba36e (diff) | |
Merge branch 'x86-core-v2-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
This merges in:
x86/build, x86/microcode, x86/spinlocks, x86/memory-corruption-check,
x86/early-printk, x86/xsave, x86/quirks, x86/setup, x86/signal,
core/signal, x86/urgent, x86/xen
* 'x86-core-v2-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (142 commits)
x86: make processor type select depend on CONFIG_EMBEDDED
x86: extend processor type select help text
x86, amd-iommu: propagate PCI device enabling error
warnings: fix arch/x86/kernel/io_apic_64.c
warnings: fix arch/x86/kernel/early_printk.c
x86, fpu: check __clear_user() return value
x86: memory corruption check - cleanup
x86: ioperm user_regset
xen: do not reserve 2 pages of padding between hypervisor and fixmap.
xen: use spin_lock_nest_lock when pinning a pagetable
x86: xsave: set FP, SSE bits in the xsave header in the user sigcontext
x86: xsave: fix error condition in save_i387_xstate()
x86: SB450: deprioritize DMI quirks
x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC
x86: replace a magic number with a named constant in the VESA boot code
x86 setup: remove IMAGE_OFFSET
x86 setup: remove DEF_INITSEG and DEF_SETUPSEG
Revert "x86: fix ghost EDD devices in /sys again"
x86 setup: fix ghost entries under /sys/firmware/edd take 3
x86: signal: remove indent in restore_sigcontext()
...
Diffstat (limited to 'arch/x86/xen/time.c')
| -rw-r--r-- | arch/x86/xen/time.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 685b77470fc3..004ba86326ae 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
| @@ -30,8 +30,6 @@ | |||
| 30 | #define TIMER_SLOP 100000 | 30 | #define TIMER_SLOP 100000 |
| 31 | #define NS_PER_TICK (1000000000LL / HZ) | 31 | #define NS_PER_TICK (1000000000LL / HZ) |
| 32 | 32 | ||
| 33 | static cycle_t xen_clocksource_read(void); | ||
| 34 | |||
| 35 | /* runstate info updated by Xen */ | 33 | /* runstate info updated by Xen */ |
| 36 | static DEFINE_PER_CPU(struct vcpu_runstate_info, runstate); | 34 | static DEFINE_PER_CPU(struct vcpu_runstate_info, runstate); |
| 37 | 35 | ||
| @@ -213,7 +211,7 @@ unsigned long xen_tsc_khz(void) | |||
| 213 | return xen_khz; | 211 | return xen_khz; |
| 214 | } | 212 | } |
| 215 | 213 | ||
| 216 | static cycle_t xen_clocksource_read(void) | 214 | cycle_t xen_clocksource_read(void) |
| 217 | { | 215 | { |
| 218 | struct pvclock_vcpu_time_info *src; | 216 | struct pvclock_vcpu_time_info *src; |
| 219 | cycle_t ret; | 217 | cycle_t ret; |
| @@ -452,6 +450,14 @@ void xen_setup_timer(int cpu) | |||
| 452 | setup_runstate_info(cpu); | 450 | setup_runstate_info(cpu); |
| 453 | } | 451 | } |
| 454 | 452 | ||
| 453 | void xen_teardown_timer(int cpu) | ||
| 454 | { | ||
| 455 | struct clock_event_device *evt; | ||
| 456 | BUG_ON(cpu == 0); | ||
| 457 | evt = &per_cpu(xen_clock_events, cpu); | ||
| 458 | unbind_from_irqhandler(evt->irq, NULL); | ||
| 459 | } | ||
| 460 | |||
| 455 | void xen_setup_cpu_clockevents(void) | 461 | void xen_setup_cpu_clockevents(void) |
| 456 | { | 462 | { |
| 457 | BUG_ON(preemptible()); | 463 | BUG_ON(preemptible()); |
