diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-05-26 12:37:47 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-05-26 12:37:47 +0100 |
commit | 093e1d2484fc46ec73e527c03af79664218045df (patch) | |
tree | 4ac0109f7f6d91c8c24a62bfdd20dc44e5370e9d /xen/include/xen | |
parent | de4bf084c8dc232a629e436ccd0ce989da8c470e (diff) | |
download | xen-093e1d2484fc46ec73e527c03af79664218045df.tar.gz xen-093e1d2484fc46ec73e527c03af79664218045df.tar.bz2 xen-093e1d2484fc46ec73e527c03af79664218045df.zip |
xen: remove extern function declarations from C files.
Move all extern declarations into appropriate header files.
This also fixes up a few places where the caller and the definition
had different signatures.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/include/xen')
-rw-r--r-- | xen/include/xen/cpuidle.h | 2 | ||||
-rw-r--r-- | xen/include/xen/kexec.h | 6 | ||||
-rw-r--r-- | xen/include/xen/pci.h | 1 | ||||
-rw-r--r-- | xen/include/xen/perfc.h | 4 | ||||
-rw-r--r-- | xen/include/xen/pmstat.h | 1 | ||||
-rw-r--r-- | xen/include/xen/sched.h | 6 | ||||
-rw-r--r-- | xen/include/xen/spinlock.h | 4 |
7 files changed, 24 insertions, 0 deletions
diff --git a/xen/include/xen/cpuidle.h b/xen/include/xen/cpuidle.h index bbdadb4ac4..5285063696 100644 --- a/xen/include/xen/cpuidle.h +++ b/xen/include/xen/cpuidle.h @@ -95,4 +95,6 @@ extern void cpuidle_wakeup_mwait(cpumask_t *mask); #define CPUIDLE_DRIVER_STATE_START 1 +extern void menu_get_trace_data(u32 *expected, u32 *pred); + #endif /* _XEN_CPUIDLE_H */ diff --git a/xen/include/xen/kexec.h b/xen/include/xen/kexec.h index 9b51004c38..26df1ac9ac 100644 --- a/xen/include/xen/kexec.h +++ b/xen/include/xen/kexec.h @@ -34,6 +34,12 @@ void kexec_crash_save_cpu(void); crash_xen_info_t *kexec_crash_save_info(void); void machine_crash_shutdown(void); int machine_kexec_get(xen_kexec_range_t *range); +int machine_kexec_get_xen(xen_kexec_range_t *range); + +void compat_machine_kexec(unsigned long rnk, + unsigned long indirection_page, + unsigned long *page_list, + unsigned long start_address); /* vmcoreinfo stuff */ #define VMCOREINFO_BYTES (4096) diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index 40c9847335..79082d1721 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -119,6 +119,7 @@ int pci_find_ext_capability(int seg, int bus, int devfn, int cap); int msixtbl_pt_register(struct domain *d, int pirq, uint64_t gtable); void msixtbl_pt_unregister(struct domain *d, int pirq); +void msixtbl_pt_cleanup(struct domain *d); void pci_enable_acs(struct pci_dev *pdev); #endif /* __XEN_PCI_H__ */ diff --git a/xen/include/xen/perfc.h b/xen/include/xen/perfc.h index 59353a34d4..6cb0cd1739 100644 --- a/xen/include/xen/perfc.h +++ b/xen/include/xen/perfc.h @@ -95,6 +95,10 @@ DECLARE_PER_CPU(perfc_t[NUM_PERFCOUNTERS], perfcounters); struct xen_sysctl_perfc_op; int perfc_control(struct xen_sysctl_perfc_op *); + +extern void perfc_printall(unsigned char key); +extern void perfc_reset(unsigned char key); + #else /* PERF_COUNTERS */ diff --git a/xen/include/xen/pmstat.h b/xen/include/xen/pmstat.h index 979af239c7..266bc16d86 100644 --- a/xen/include/xen/pmstat.h +++ b/xen/include/xen/pmstat.h @@ -5,6 +5,7 @@ #include <public/platform.h> /* for struct xen_processor_power */ #include <public/sysctl.h> /* for struct pm_cx_stat */ +int set_px_pminfo(uint32_t cpu, struct xen_processor_performance *perf); long set_cx_pminfo(uint32_t cpu, struct xen_processor_power *power); uint32_t pmstat_get_cx_nr(uint32_t cpuid); int pmstat_get_cx_stat(uint32_t cpuid, struct pm_cx_stat *stat); diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 7b546d77b9..e3eab706a3 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -534,6 +534,9 @@ void continue_running( struct vcpu *same); void startup_cpu_idle_loop(void); +extern void (*pm_idle) (void); +extern void (*dead_idle) (void); + /* * Creates a continuation to resume the current hypercall. The caller should @@ -653,6 +656,9 @@ void cpupool_put(struct cpupool *pool); int cpupool_add_domain(struct domain *d, int poolid); void cpupool_rm_domain(struct domain *d); int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op); +void schedule_dump(struct cpupool *c); +extern void dump_runq(unsigned char key); + #define num_cpupool_cpus(c) (cpus_weight((c)->cpu_valid)) #endif /* __SCHED_H__ */ diff --git a/xen/include/xen/spinlock.h b/xen/include/xen/spinlock.h index dd1550ca58..6400c2b616 100644 --- a/xen/include/xen/spinlock.h +++ b/xen/include/xen/spinlock.h @@ -98,6 +98,10 @@ void _lock_profile_deregister_struct(int32_t, struct lock_profile_qhead *); #define lock_profile_deregister_struct(type, ptr) \ _lock_profile_deregister_struct(type, &((ptr)->profile_head)) +extern int spinlock_profile_control(xen_sysctl_lockprof_op_t *pc); +extern void spinlock_profile_printall(unsigned char key); +extern void spinlock_profile_reset(unsigned char key); + #else struct lock_profile { }; |