summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Levon <levon@movementarian.org>2003-04-04 04:12:09 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-04 04:12:09 -0800
commit7777d006d3c38a0bbb254e35d96cf8f2b9f925a2 (patch)
treeb21d768a8e79e48721d626ed7e9a694c85b72df8 /include
parent99686994db763eeaeceeafb61a2e0ddb90898fc0 (diff)
[PATCH] bk - fix oprofile for pm driver register
OK, so I screwed up - didn't notice the late_initcall() that was introduced, which was obviously bogus. This one should build OK for the module case. I've tested insmod/rmmod alongside a mounted sysfs. I think the built-in case is OK: oprofile/ is after kernel/ in the link order. I tested that too.
Diffstat (limited to 'include')
-rw-r--r--include/linux/oprofile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/oprofile.h b/include/linux/oprofile.h
index 5d906c21103f..6dba9058bca0 100644
--- a/include/linux/oprofile.h
+++ b/include/linux/oprofile.h
@@ -46,6 +46,11 @@ struct oprofile_operations {
int oprofile_arch_init(struct oprofile_operations ** ops);
/**
+ * One-time exit/cleanup for the arch.
+ */
+void oprofile_arch_exit(void);
+
+/**
* Add a sample. This may be called from any context. Pass
* smp_processor_id() as cpu.
*/