AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20090501161735.627890f4@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:mail.onstor.net
NSV:
SSH:
R:<bfisher@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 1 May 2009 16:19:08 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: Bill Fisher <bfisher@onstor.com>
Subject: patch for acpu thread
Message-ID: <20090501161908.509ec8fc@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Here is a patch that should solve your problem, but you should really
be building it as a module, so you can load it, debug, unload, build a
new one, load it, debug, unload, and like that, w/o having to reboot all
the time.

I'm just sayin...


diff --git a/net/onstor/acpu.c b/net/onstor/acpu.c
index 4444625..c2fe288 100644
--- a/net/onstor/acpu.c
+++ b/net/onstor/acpu.c
@@ -53,5 +53,13 @@ acpu_mod_exit(void)
 }
 
 MODULE_LICENSE("GPL");
-module_init(acpu_threadg_init);
-module_exit(acpu_mod_exit);
+
+#ifdef CONFIG_TUXRX_ACPU_MODULE
+# define ACPU_INIT(M) module_init(M)
+# define ACPU_EXIT(M) module_exit(M)
+#else
+# define ACPU_INIT(M) late_initcall(M)
+# define ACPU_EXIT(M) __exitcall(M)
+#endfi
+ACPU_INIT(acpu_threadg_init);
+ACPU_EXIT(acpu_mod_exit);
