ia64/xen-unstable

view linux-2.6-xen-sparse/arch/ia64/oprofile/oprofile_perfmon.h @ 14100:e47738923a05

[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Fri Feb 23 16:56:45 2007 +0000 (2007-02-23)
parents fe565ac4bf25
children
line source
1 #ifndef OPROFILE_PERFMON_H
2 #define OPROFILE_PERFMON_H
4 #ifdef CONFIG_PERFMON
5 int __perfmon_init(void);
6 void __perfmon_exit(void);
7 int perfmon_start(void);
8 void perfmon_stop(void);
9 #else
10 #define __perfmon_init() (-ENOSYS)
11 #define __perfmon_exit() do {} while (0)
12 #endif /* CONFIG_PERFMON */
14 #ifdef CONFIG_XEN
15 #define STATIC_IF_NO_XEN /* nothing */
16 #define xen_perfmon_init() __perfmon_init()
17 #define xen_perfmon_exit() __perfmon_exit()
18 extern int xenoprofile_init(struct oprofile_operations * ops);
19 extern void xenoprofile_exit(void);
20 #else
21 #define STATIC_IF_NO_XEN static
22 #define xen_perfmon_init() (-ENOSYS)
23 #define xen_perfmon_exit() do {} while (0)
24 #define xenoprofile_init() (-ENOSYS)
25 #define xenoprofile_exit() do {} while (0)
26 #endif /* CONFIG_XEN */
28 #endif /* OPROFILE_PERFMON_H */