diff options
Diffstat (limited to 'drivers/oprofile/timer_int.c')
-rw-r--r-- | drivers/oprofile/timer_int.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/oprofile/timer_int.c b/drivers/oprofile/timer_int.c index 0099a458fd37..3ef44624f510 100644 --- a/drivers/oprofile/timer_int.c +++ b/drivers/oprofile/timer_int.c | |||
@@ -97,13 +97,14 @@ static struct notifier_block __refdata oprofile_cpu_notifier = { | |||
97 | .notifier_call = oprofile_cpu_notify, | 97 | .notifier_call = oprofile_cpu_notify, |
98 | }; | 98 | }; |
99 | 99 | ||
100 | int __oprofile_timer_init(struct oprofile_operations *ops) | 100 | int oprofile_timer_init(struct oprofile_operations *ops) |
101 | { | 101 | { |
102 | int rc; | 102 | int rc; |
103 | 103 | ||
104 | rc = register_hotcpu_notifier(&oprofile_cpu_notifier); | 104 | rc = register_hotcpu_notifier(&oprofile_cpu_notifier); |
105 | if (rc) | 105 | if (rc) |
106 | return rc; | 106 | return rc; |
107 | ops->create_files = NULL; | ||
107 | ops->setup = NULL; | 108 | ops->setup = NULL; |
108 | ops->shutdown = NULL; | 109 | ops->shutdown = NULL; |
109 | ops->start = oprofile_hrtimer_start; | 110 | ops->start = oprofile_hrtimer_start; |
@@ -112,17 +113,7 @@ int __oprofile_timer_init(struct oprofile_operations *ops) | |||
112 | return 0; | 113 | return 0; |
113 | } | 114 | } |
114 | 115 | ||
115 | int __init oprofile_timer_init(struct oprofile_operations *ops) | 116 | void oprofile_timer_exit(void) |
116 | { | ||
117 | return __oprofile_timer_init(ops); | ||
118 | } | ||
119 | |||
120 | void __oprofile_timer_exit(void) | ||
121 | { | 117 | { |
122 | unregister_hotcpu_notifier(&oprofile_cpu_notifier); | 118 | unregister_hotcpu_notifier(&oprofile_cpu_notifier); |
123 | } | 119 | } |
124 | |||
125 | void __exit oprofile_timer_exit(void) | ||
126 | { | ||
127 | __oprofile_timer_exit(); | ||
128 | } | ||