edac, mc: Improve scrub rate handling
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 25 May 2010 16:21:07 +0000 (18:21 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Tue, 3 Aug 2010 14:14:06 +0000 (16:14 +0200)
commiteba042a81edd6baaff44831b2d719b14a6d21e58
treea1e768aadf18708114e2d6c4d4a54b3af49e42e9
parentbc57117856cf1e581135810b37d3b75f9d1749f5
edac, mc: Improve scrub rate handling

Fortify the interface to not accept negative values, remove
memctrl_int_store() as a result. Also, sanitize bandwidth setting by
making the argument a simple u32 instead of strange u32 pointer being
passed around for no obvious reason. Then, fix error handling and teach
it to return proper error values. Finally, make code more readable,
simplify debug messages.

Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Arthur Jones <ajones@riverbed.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Doug Thompson <dougthompson@xmission.com>
drivers/edac/amd64_edac.c
drivers/edac/e752x_edac.c
drivers/edac/edac_core.h
drivers/edac/edac_mc_sysfs.c
drivers/edac/i5100_edac.c