diff options
author | Dave Jiang <djiang@mvista.com> | 2007-07-19 04:49:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:54 -0400 |
commit | 4de78c6877ec21142582ac19453c2d453d1ea298 (patch) | |
tree | 784a1e007bea40744b93d4e0a09131e107fb6522 /drivers/edac/edac_pci.c | |
parent | 66ee2f940ac8ab25f0c43a1e717d25dc46bfe74d (diff) |
drivers/edac: mod PCI poll names
Fixup poll values for MC and PCI.
Also make mc function names unique to mc.
Signed-off-by: Dave Jiang <djiang@mvista.com>
Signed-off-by: Douglas Thompson <dougthompson@xmissin.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_pci.c')
-rw-r--r-- | drivers/edac/edac_pci.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c index 677c603f5596..9f4aaaaa4ed7 100644 --- a/drivers/edac/edac_pci.c +++ b/drivers/edac/edac_pci.c | |||
@@ -226,13 +226,14 @@ static void edac_pci_workq_function(void *ptr) | |||
226 | 226 | ||
227 | if ((pci->op_state == OP_RUNNING_POLL) && | 227 | if ((pci->op_state == OP_RUNNING_POLL) && |
228 | (pci->edac_check != NULL) && | 228 | (pci->edac_check != NULL) && |
229 | (pci->check_parity_error)) | 229 | (edac_pci_get_check_errors())) |
230 | pci->edac_check(pci); | 230 | pci->edac_check(pci); |
231 | 231 | ||
232 | edac_unlock_pci_list(); | 232 | edac_unlock_pci_list(); |
233 | 233 | ||
234 | /* Reschedule */ | 234 | /* Reschedule */ |
235 | queue_delayed_work(edac_workqueue, &pci->work, pci->delay); | 235 | queue_delayed_work(edac_workqueue, &pci->work, |
236 | msecs_to_jiffies(edac_pci_get_poll_msec())); | ||
236 | } | 237 | } |
237 | 238 | ||
238 | /* | 239 | /* |
@@ -245,15 +246,13 @@ static void edac_pci_workq_setup(struct edac_pci_ctl_info *pci, | |||
245 | { | 246 | { |
246 | debugf0("%s()\n", __func__); | 247 | debugf0("%s()\n", __func__); |
247 | 248 | ||
248 | pci->poll_msec = msec; | ||
249 | edac_calc_delay(pci); | ||
250 | |||
251 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)) | 249 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)) |
252 | INIT_DELAYED_WORK(&pci->work, edac_pci_workq_function); | 250 | INIT_DELAYED_WORK(&pci->work, edac_pci_workq_function); |
253 | #else | 251 | #else |
254 | INIT_WORK(&pci->work, edac_pci_workq_function, pci); | 252 | INIT_WORK(&pci->work, edac_pci_workq_function, pci); |
255 | #endif | 253 | #endif |
256 | queue_delayed_work(edac_workqueue, &pci->work, pci->delay); | 254 | queue_delayed_work(edac_workqueue, &pci->work, |
255 | msecs_to_jiffies(edac_pci_get_poll_msec())); | ||
257 | } | 256 | } |
258 | 257 | ||
259 | /* | 258 | /* |
@@ -390,16 +389,6 @@ struct edac_pci_ctl_info * edac_pci_del_device(struct device *dev) | |||
390 | } | 389 | } |
391 | EXPORT_SYMBOL_GPL(edac_pci_del_device); | 390 | EXPORT_SYMBOL_GPL(edac_pci_del_device); |
392 | 391 | ||
393 | static inline int edac_pci_get_log_pe(struct edac_pci_ctl_info *pci) | ||
394 | { | ||
395 | return pci->log_parity_error; | ||
396 | } | ||
397 | |||
398 | static inline int edac_pci_get_panic_on_pe(struct edac_pci_ctl_info *pci) | ||
399 | { | ||
400 | return pci->panic_on_pe; | ||
401 | } | ||
402 | |||
403 | void edac_pci_generic_check(struct edac_pci_ctl_info *pci) | 392 | void edac_pci_generic_check(struct edac_pci_ctl_info *pci) |
404 | { | 393 | { |
405 | edac_pci_do_parity_check(); | 394 | edac_pci_do_parity_check(); |