aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/edac_pci.c')
-rw-r--r--drivers/edac/edac_pci.c21
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}
391EXPORT_SYMBOL_GPL(edac_pci_del_device); 390EXPORT_SYMBOL_GPL(edac_pci_del_device);
392 391
393static inline int edac_pci_get_log_pe(struct edac_pci_ctl_info *pci)
394{
395 return pci->log_parity_error;
396}
397
398static inline int edac_pci_get_panic_on_pe(struct edac_pci_ctl_info *pci)
399{
400 return pci->panic_on_pe;
401}
402
403void edac_pci_generic_check(struct edac_pci_ctl_info *pci) 392void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
404{ 393{
405 edac_pci_do_parity_check(); 394 edac_pci_do_parity_check();