Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC: Respect operational state in edac_pci.c

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>

authored by

Borislav Petkov and committed by
Borislav Petkov
876bb331 9489e9dc

+2 -1
+2 -1
drivers/edac/edac_pci.c
··· 470 470 471 471 pci->mod_name = mod_name; 472 472 pci->ctl_name = EDAC_PCI_GENCTL_NAME; 473 - pci->edac_check = edac_pci_generic_check; 473 + if (edac_op_state == EDAC_OPSTATE_POLL) 474 + pci->edac_check = edac_pci_generic_check; 474 475 475 476 pdata->edac_idx = edac_pci_idx++; 476 477