ia64/xen-unstable

view xen/include/asm-x86/time.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents e98032a016d6
children
line source
2 #ifndef __X86_TIME_H__
3 #define __X86_TIME_H__
5 #include <asm/msr.h>
7 void calibrate_tsc_bp(void);
8 void calibrate_tsc_ap(void);
10 typedef u64 cycles_t;
12 static inline cycles_t get_cycles(void)
13 {
14 cycles_t c;
15 rdtscll(c);
16 return c;
17 }
19 unsigned long
20 mktime (unsigned int year, unsigned int mon,
21 unsigned int day, unsigned int hour,
22 unsigned int min, unsigned int sec);
24 int time_suspend(void);
25 int time_resume(void);
27 void init_percpu_time(void);
29 struct ioreq;
30 int dom0_pit_access(struct ioreq *ioreq);
32 int cpu_frequency_change(u64 freq);
34 struct tm;
35 struct tm wallclock_time(void);
37 void pit_broadcast_enter(void);
38 void pit_broadcast_exit(void);
39 int pit_broadcast_is_available(void);
41 uint64_t acpi_pm_tick_to_ns(uint64_t ticks);
42 uint64_t ns_to_acpi_pm_tick(uint64_t ns);
44 #endif /* __X86_TIME_H__ */