Re: [PATCH 4/7] ARM: oprofile: Move non-ARM code into separate init/exit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Mundt
Date: Wednesday, October 6, 2010 - 7:53 am

On Wed, Oct 06, 2010 at 04:49:21PM +0200, Robert Richter wrote:
I'm a bit confused as to why we just don't do:

---

diff --git a/drivers/oprofile/oprof.c b/drivers/oprofile/oprof.c
index b336cd9..76d97a5 100644
--- a/drivers/oprofile/oprof.c
+++ b/drivers/oprofile/oprof.c
@@ -252,6 +252,8 @@ static int __init oprofile_init(void)
 {
 	int err;
 
+	memset(&oprofile_ops, 0, sizeof(struct oprofile_operations));
+
 	err = oprofile_arch_init(&oprofile_ops);
 	if (err < 0 || timer) {
 		printk(KERN_INFO "oprofile: using timer interrupt.\n");
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/7] perf: New helper function for pmu name, Matt Fleming, (Mon Oct 4, 1:44 pm)
Re: [PATCH 2/7] perf: New helper function for pmu name, Robert Richter, (Wed Oct 6, 5:27 am)
Re: [PATCH 2/7] perf: New helper function for pmu name, Robert Richter, (Wed Oct 6, 6:18 am)
Re: [PATCH 4/7] ARM: oprofile: Move non-ARM code into sepa ..., Paul Mundt, (Wed Oct 6, 7:53 am)
Re: [PATCH 2/7] perf: New helper function for pmu name, Robert Richter, (Wed Oct 6, 8:37 am)
Re: [PATCH 2/7] perf: New helper function for pmu name, Robert Richter, (Wed Oct 6, 8:50 am)
Re: [PATCH 2/7] perf: New helper function for pmu name, Robert Richter, (Wed Oct 6, 11:15 am)