diff options
Diffstat (limited to 'drivers/edac/edac_mc.c')
-rw-r--r-- | drivers/edac/edac_mc.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 7c952c68f0d6..2e8c198749a1 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c | |||
@@ -263,7 +263,8 @@ static void edac_mc_workq_function(void *ptr) | |||
263 | mutex_unlock(&mem_ctls_mutex); | 263 | mutex_unlock(&mem_ctls_mutex); |
264 | 264 | ||
265 | /* Reschedule */ | 265 | /* Reschedule */ |
266 | queue_delayed_work(edac_workqueue, &mci->work, edac_mc_get_poll_msec()); | 266 | queue_delayed_work(edac_workqueue, &mci->work, |
267 | msecs_to_jiffies(edac_mc_get_poll_msec())); | ||
267 | } | 268 | } |
268 | 269 | ||
269 | /* | 270 | /* |
@@ -611,7 +612,7 @@ void edac_mc_handle_ce(struct mem_ctl_info *mci, | |||
611 | return; | 612 | return; |
612 | } | 613 | } |
613 | 614 | ||
614 | if (edac_get_log_ce()) | 615 | if (edac_mc_get_log_ce()) |
615 | /* FIXME - put in DIMM location */ | 616 | /* FIXME - put in DIMM location */ |
616 | edac_mc_printk(mci, KERN_WARNING, | 617 | edac_mc_printk(mci, KERN_WARNING, |
617 | "CE page 0x%lx, offset 0x%lx, grain %d, syndrome " | 618 | "CE page 0x%lx, offset 0x%lx, grain %d, syndrome " |
@@ -646,7 +647,7 @@ EXPORT_SYMBOL_GPL(edac_mc_handle_ce); | |||
646 | 647 | ||
647 | void edac_mc_handle_ce_no_info(struct mem_ctl_info *mci, const char *msg) | 648 | void edac_mc_handle_ce_no_info(struct mem_ctl_info *mci, const char *msg) |
648 | { | 649 | { |
649 | if (edac_get_log_ce()) | 650 | if (edac_mc_get_log_ce()) |
650 | edac_mc_printk(mci, KERN_WARNING, | 651 | edac_mc_printk(mci, KERN_WARNING, |
651 | "CE - no information available: %s\n", msg); | 652 | "CE - no information available: %s\n", msg); |
652 | 653 | ||
@@ -690,14 +691,14 @@ void edac_mc_handle_ue(struct mem_ctl_info *mci, | |||
690 | pos += chars; | 691 | pos += chars; |
691 | } | 692 | } |
692 | 693 | ||
693 | if (edac_get_log_ue()) | 694 | if (edac_mc_get_log_ue()) |
694 | edac_mc_printk(mci, KERN_EMERG, | 695 | edac_mc_printk(mci, KERN_EMERG, |
695 | "UE page 0x%lx, offset 0x%lx, grain %d, row %d, " | 696 | "UE page 0x%lx, offset 0x%lx, grain %d, row %d, " |
696 | "labels \"%s\": %s\n", page_frame_number, | 697 | "labels \"%s\": %s\n", page_frame_number, |
697 | offset_in_page, mci->csrows[row].grain, row, labels, | 698 | offset_in_page, mci->csrows[row].grain, row, labels, |
698 | msg); | 699 | msg); |
699 | 700 | ||
700 | if (edac_get_panic_on_ue()) | 701 | if (edac_mc_get_panic_on_ue()) |
701 | panic("EDAC MC%d: UE page 0x%lx, offset 0x%lx, grain %d, " | 702 | panic("EDAC MC%d: UE page 0x%lx, offset 0x%lx, grain %d, " |
702 | "row %d, labels \"%s\": %s\n", mci->mc_idx, | 703 | "row %d, labels \"%s\": %s\n", mci->mc_idx, |
703 | page_frame_number, offset_in_page, | 704 | page_frame_number, offset_in_page, |
@@ -710,10 +711,10 @@ EXPORT_SYMBOL_GPL(edac_mc_handle_ue); | |||
710 | 711 | ||
711 | void edac_mc_handle_ue_no_info(struct mem_ctl_info *mci, const char *msg) | 712 | void edac_mc_handle_ue_no_info(struct mem_ctl_info *mci, const char *msg) |
712 | { | 713 | { |
713 | if (edac_get_panic_on_ue()) | 714 | if (edac_mc_get_panic_on_ue()) |
714 | panic("EDAC MC%d: Uncorrected Error", mci->mc_idx); | 715 | panic("EDAC MC%d: Uncorrected Error", mci->mc_idx); |
715 | 716 | ||
716 | if (edac_get_log_ue()) | 717 | if (edac_mc_get_log_ue()) |
717 | edac_mc_printk(mci, KERN_WARNING, | 718 | edac_mc_printk(mci, KERN_WARNING, |
718 | "UE - no information available: %s\n", msg); | 719 | "UE - no information available: %s\n", msg); |
719 | mci->ue_noinfo_count++; | 720 | mci->ue_noinfo_count++; |
@@ -776,13 +777,13 @@ void edac_mc_handle_fbd_ue(struct mem_ctl_info *mci, | |||
776 | chars = snprintf(pos, len + 1, "-%s", | 777 | chars = snprintf(pos, len + 1, "-%s", |
777 | mci->csrows[csrow].channels[channelb].label); | 778 | mci->csrows[csrow].channels[channelb].label); |
778 | 779 | ||
779 | if (edac_get_log_ue()) | 780 | if (edac_mc_get_log_ue()) |
780 | edac_mc_printk(mci, KERN_EMERG, | 781 | edac_mc_printk(mci, KERN_EMERG, |
781 | "UE row %d, channel-a= %d channel-b= %d " | 782 | "UE row %d, channel-a= %d channel-b= %d " |
782 | "labels \"%s\": %s\n", csrow, channela, channelb, | 783 | "labels \"%s\": %s\n", csrow, channela, channelb, |
783 | labels, msg); | 784 | labels, msg); |
784 | 785 | ||
785 | if (edac_get_panic_on_ue()) | 786 | if (edac_mc_get_panic_on_ue()) |
786 | panic("UE row %d, channel-a= %d channel-b= %d " | 787 | panic("UE row %d, channel-a= %d channel-b= %d " |
787 | "labels \"%s\": %s\n", csrow, channela, | 788 | "labels \"%s\": %s\n", csrow, channela, |
788 | channelb, labels, msg); | 789 | channelb, labels, msg); |
@@ -817,7 +818,7 @@ void edac_mc_handle_fbd_ce(struct mem_ctl_info *mci, | |||
817 | return; | 818 | return; |
818 | } | 819 | } |
819 | 820 | ||
820 | if (edac_get_log_ce()) | 821 | if (edac_mc_get_log_ce()) |
821 | /* FIXME - put in DIMM location */ | 822 | /* FIXME - put in DIMM location */ |
822 | edac_mc_printk(mci, KERN_WARNING, | 823 | edac_mc_printk(mci, KERN_WARNING, |
823 | "CE row %d, channel %d, label \"%s\": %s\n", | 824 | "CE row %d, channel %d, label \"%s\": %s\n", |