diff options
author | Dave Jiang <djiang@mvista.com> | 2007-07-19 04:49:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:54 -0400 |
commit | 81d87cb13e367bb804bf44889ae0de7369705d6c (patch) | |
tree | 1c135cb57d92ae3baf2b3308f01fb548ab39f644 /drivers/edac/edac_mc_sysfs.c | |
parent | 535c6a53035d8911f6b90455550c5fde0da7b866 (diff) |
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.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 6e2785bd011..6b2217b741f 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -22,22 +22,28 @@ static int panic_on_ue; | |||
22 | static int poll_msec = 1000; | 22 | static int poll_msec = 1000; |
23 | 23 | ||
24 | /* Getter functions for above */ | 24 | /* Getter functions for above */ |
25 | int edac_get_log_ue() | 25 | int edac_get_log_ue(void) |
26 | { | 26 | { |
27 | return log_ue; | 27 | return log_ue; |
28 | } | 28 | } |
29 | 29 | ||
30 | int edac_get_log_ce() | 30 | int edac_get_log_ce(void) |
31 | { | 31 | { |
32 | return log_ce; | 32 | return log_ce; |
33 | } | 33 | } |
34 | 34 | ||
35 | int edac_get_panic_on_ue() | 35 | int edac_get_panic_on_ue(void) |
36 | { | 36 | { |
37 | return panic_on_ue; | 37 | return panic_on_ue; |
38 | } | 38 | } |
39 | 39 | ||
40 | int edac_get_poll_msec() | 40 | /* this is temporary */ |
41 | int edac_mc_get_poll_msec(void) | ||
42 | { | ||
43 | return edac_get_poll_msec(); | ||
44 | } | ||
45 | |||
46 | int edac_get_poll_msec(void) | ||
41 | { | 47 | { |
42 | return poll_msec; | 48 | return poll_msec; |
43 | } | 49 | } |