projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9489e9d
)
EDAC: Respect operational state in edac_pci.c
author
Borislav Petkov
<borislav.petkov@amd.com>
Mon, 10 Sep 2012 13:52:27 +0000
(15:52 +0200)
committer
Borislav Petkov
<bp@alien8.de>
Wed, 28 Nov 2012 10:22:47 +0000
(11:22 +0100)
Currently, we unconditionally enable PCI polling and we don't look at
the edac_op_state module parameter. Make this dependent on the parameter
setting supplied on the command line.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/edac_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/edac_pci.c
b/drivers/edac/edac_pci.c
index ee87ef972ead7667a60a1359e9347e9ebaf60bda..dd370f92ace3402321bbc6f94cfd6814cbb3fb4f 100644
(file)
--- a/
drivers/edac/edac_pci.c
+++ b/
drivers/edac/edac_pci.c
@@
-470,7
+470,8
@@
struct edac_pci_ctl_info *edac_pci_create_generic_ctl(struct device *dev,
pci->mod_name = mod_name;
pci->ctl_name = EDAC_PCI_GENCTL_NAME;
- pci->edac_check = edac_pci_generic_check;
+ if (edac_op_state == EDAC_OPSTATE_POLL)
+ pci->edac_check = edac_pci_generic_check;
pdata->edac_idx = edac_pci_idx++;