ia64/xen-unstable

view xen/include/acpi/cpufreq/processor_perf.h @ 17947:6cac9c3ee2aa

x86: Remove inline declaration to fix build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 02 10:56:37 2008 +0100 (2008-07-02)
parents 0b4dbd9a9896
children b0ee5e8613e9
line source
1 #ifndef __XEN_PROCESSOR_PM_H__
2 #define __XEN_PROCESSOR_PM_H__
4 #include <public/platform.h>
5 #include <public/sysctl.h>
7 int get_cpu_id(u8);
8 int acpi_cpufreq_init(void);
9 int powernow_cpufreq_init(void);
11 void px_statistic_update(cpumask_t, uint8_t, uint8_t);
12 int px_statistic_init(int);
13 void px_statistic_reset(int);
14 void px_statistic_suspend(void);
15 void px_statistic_resume(void);
17 void cpufreq_dom_exit(void);
18 int cpufreq_dom_init(void);
19 int cpufreq_dom_dbs(unsigned int);
20 void cpufreq_suspend(void);
21 int cpufreq_resume(void);
23 uint64_t get_cpu_idle_time(unsigned int);
25 struct processor_performance {
26 uint32_t state;
27 uint32_t ppc;
28 struct xen_pct_register control_register;
29 struct xen_pct_register status_register;
30 uint32_t state_count;
31 struct xen_processor_px *states;
32 struct xen_psd_package domain_info;
33 cpumask_t shared_cpu_map;
34 uint32_t shared_type;
36 uint32_t init;
37 };
39 struct processor_pminfo {
40 uint32_t acpi_id;
41 uint32_t id;
42 struct processor_performance perf;
43 };
45 extern struct processor_pminfo processor_pminfo[NR_CPUS];
47 struct px_stat {
48 uint8_t total; /* total Px states */
49 uint8_t usable; /* usable Px states */
50 uint8_t last; /* last Px state */
51 uint8_t cur; /* current Px state */
52 uint64_t *trans_pt; /* Px transition table */
53 pm_px_val_t *pt;
54 };
56 struct pm_px {
57 struct px_stat u;
58 uint64_t prev_state_wall;
59 uint64_t prev_idle_wall;
60 };
62 extern struct pm_px px_statistic_data[NR_CPUS];
64 #endif /* __XEN_PROCESSOR_PM_H__ */