From 7777d006d3c38a0bbb254e35d96cf8f2b9f925a2 Mon Sep 17 00:00:00 2001 From: John Levon Date: Fri, 4 Apr 2003 04:12:09 -0800 Subject: [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. --- include/linux/oprofile.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/linux') 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 @@ -45,6 +45,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. -- cgit v1.2.3