amd64_edac: Remove DRAM base/limit subfields caching
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 21 Oct 2010 16:52:53 +0000 (18:52 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 17 Mar 2011 13:46:11 +0000 (14:46 +0100)
commit7f19bf755ced6fa16dbf118c0eff60586760496b
tree93b050e1a30efe33aaa1ffdf26473bd9ab55a585
parentb2b0c605436e343a9a24f00e7fc8fb89a8316e20
amd64_edac: Remove DRAM base/limit subfields caching

Add a struct representing the DRAM base/limit range pairs and remove all
cached subfields. Replace them with accessor functions, which actually
saves us some space:

   text    data     bss     dec     hex filename
  14712    1577     336   16625    40f1 drivers/edac/amd64_edac_mod.o.after
  14831    1609     336   16776    4188 drivers/edac/amd64_edac_mod.o.before

Also, it simplifies the code a lot allowing to merge the K8 and F10h
routines.

No functional change.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h