]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit341c0ea86d965584ed21273518d41afe7836f7fa
treea1e768aadf18708114e2d6c4d4a54b3af49e42e9
parent6172cbaad7e8731a8a64f02524460565dd89227e
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