diff options
Diffstat (limited to 'drivers/oprofile/oprof.h')
-rw-r--r-- | drivers/oprofile/oprof.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/oprofile/oprof.h b/drivers/oprofile/oprof.h index 177b73de5e5f..769fb0fcac44 100644 --- a/drivers/oprofile/oprof.h +++ b/drivers/oprofile/oprof.h | |||
@@ -36,6 +36,15 @@ struct dentry; | |||
36 | void oprofile_create_files(struct super_block *sb, struct dentry *root); | 36 | void oprofile_create_files(struct super_block *sb, struct dentry *root); |
37 | int oprofile_timer_init(struct oprofile_operations *ops); | 37 | int oprofile_timer_init(struct oprofile_operations *ops); |
38 | void oprofile_timer_exit(void); | 38 | void oprofile_timer_exit(void); |
39 | #ifdef CONFIG_OPROFILE_NMI_TIMER | ||
40 | int op_nmi_timer_init(struct oprofile_operations *ops); | ||
41 | #else | ||
42 | static inline int op_nmi_timer_init(struct oprofile_operations *ops) | ||
43 | { | ||
44 | return -ENODEV; | ||
45 | } | ||
46 | #endif | ||
47 | |||
39 | 48 | ||
40 | int oprofile_set_ulong(unsigned long *addr, unsigned long val); | 49 | int oprofile_set_ulong(unsigned long *addr, unsigned long val); |
41 | int oprofile_set_timeout(unsigned long time); | 50 | int oprofile_set_timeout(unsigned long time); |