diff options
author | 2020-06-03 21:19:21 +0200 | |
---|---|---|
committer | 2020-06-16 19:25:15 +0200 | |
commit | b9cae27728d1f9c9ed858adf012adddfcd8d3802 (patch) | |
tree | 14472c20de8a265e9789164c6fbf314e18f1060a /scripts/gen_compile_commands.py | |
parent | EDAC/ghes: Remove unused members of struct ghes_edac_pvt, rename it to ghes_pvt (diff) | |
download | linux-dev-b9cae27728d1f9c9ed858adf012adddfcd8d3802.tar.xz linux-dev-b9cae27728d1f9c9ed858adf012adddfcd8d3802.zip |
EDAC/ghes: Scan the system once on driver init
Change the hardware scanning and figuring out how many DIMMs a machine
has to a single, one-time thing which happens once on driver init. After
that scanning completes, struct ghes_hw_desc contains a representation
of the hardware which the driver can then use for later initialization.
Then, copy the DIMM information into the respective EDAC core
representation of those.
Get rid of ghes_edac_dimm_fill and use a struct dimm_info array
directly.
This way, hw detection and further driver initialization is nicely
and logically split. Further additions should all be added to
ghes_scan_system() and the hw representation extended as needed.
There should be no functionality change resulting from this patch.
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions