Commit eb2bcdf
EDAC/amd64: Split ecc_enabled() into dct/umc functions
Call them using a function pointer in pvt->ops. The "ECC enabled"
check is done outside of the hardware information gathering done in
hw_info_get(). So a high-level function pointer is needed to separate
the legacy and modern paths.
No functional change is intended.
[Yazen: rebased/reworked patch and reworded commit message. ]
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Co-developed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Co-developed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230127170419.1824692-17-yazen.ghannam@amd.com1 parent 32ecdf8 commit eb2bcdf
2 files changed
Lines changed: 40 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3527 | 3527 | | |
3528 | 3528 | | |
3529 | 3529 | | |
3530 | | - | |
| 3530 | + | |
3531 | 3531 | | |
3532 | 3532 | | |
3533 | 3533 | | |
3534 | | - | |
| 3534 | + | |
3535 | 3535 | | |
3536 | 3536 | | |
3537 | | - | |
3538 | | - | |
3539 | | - | |
| 3537 | + | |
3540 | 3538 | | |
3541 | | - | |
3542 | | - | |
| 3539 | + | |
3543 | 3540 | | |
3544 | | - | |
3545 | | - | |
3546 | | - | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
3547 | 3545 | | |
3548 | | - | |
| 3546 | + | |
3549 | 3547 | | |
3550 | | - | |
3551 | | - | |
3552 | | - | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
3553 | 3553 | | |
3554 | | - | |
3555 | | - | |
3556 | | - | |
3557 | | - | |
3558 | | - | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
3559 | 3560 | | |
3560 | | - | |
3561 | | - | |
3562 | | - | |
3563 | | - | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
3564 | 3567 | | |
3565 | | - | |
| 3568 | + | |
3566 | 3569 | | |
3567 | | - | |
3568 | | - | |
3569 | | - | |
3570 | | - | |
| 3570 | + | |
| 3571 | + | |
3571 | 3572 | | |
3572 | 3573 | | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
3573 | 3580 | | |
3574 | 3581 | | |
3575 | | - | |
| 3582 | + | |
3576 | 3583 | | |
3577 | 3584 | | |
3578 | 3585 | | |
| |||
3678 | 3685 | | |
3679 | 3686 | | |
3680 | 3687 | | |
| 3688 | + | |
3681 | 3689 | | |
3682 | 3690 | | |
3683 | 3691 | | |
3684 | 3692 | | |
3685 | 3693 | | |
3686 | 3694 | | |
3687 | 3695 | | |
| 3696 | + | |
3688 | 3697 | | |
3689 | 3698 | | |
3690 | 3699 | | |
| |||
3910 | 3919 | | |
3911 | 3920 | | |
3912 | 3921 | | |
3913 | | - | |
| 3922 | + | |
3914 | 3923 | | |
3915 | 3924 | | |
3916 | 3925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| |||
0 commit comments