summaryrefslogtreecommitdiff
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorDave Jiang <djiang@mvista.com>2007-07-19 01:49:52 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 10:04:54 -0700
commit81d87cb13e367bb804bf44889ae0de7369705d6c (patch)
tree1c135cb57d92ae3baf2b3308f01fb548ab39f644 /drivers/edac/edac_mc_sysfs.c
parent535c6a53035d8911f6b90455550c5fde0da7b866 (diff)
downloadlwn-81d87cb13e367bb804bf44889ae0de7369705d6c.tar.gz
lwn-81d87cb13e367bb804bf44889ae0de7369705d6c.zip
drivers/edac: mod MC to use workq instead of kthread
Move the memory controller object to work queue based implementation from the kernel thread based. Signed-off-by: Dave Jiang <djiang@mvista.com> Signed-off-by: Douglas Thompson <dougthompson@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
-rw-r--r--drivers/edac/edac_mc_sysfs.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 6e2785bd011c..6b2217b741fb 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -22,22 +22,28 @@ static int panic_on_ue;
static int poll_msec = 1000;
/* Getter functions for above */
-int edac_get_log_ue()
+int edac_get_log_ue(void)
{
return log_ue;
}
-int edac_get_log_ce()
+int edac_get_log_ce(void)
{
return log_ce;
}
-int edac_get_panic_on_ue()
+int edac_get_panic_on_ue(void)
{
return panic_on_ue;
}
-int edac_get_poll_msec()
+/* this is temporary */
+int edac_mc_get_poll_msec(void)
+{
+ return edac_get_poll_msec();
+}
+
+int edac_get_poll_msec(void)
{
return poll_msec;
}