• B
    edac, mc: Improve scrub rate handling · eba042a8
    Borislav Petkov 提交于
    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: NBorislav Petkov <borislav.petkov@amd.com>
    Acked-by: NDoug Thompson <dougthompson@xmission.com>
    eba042a8
i5100_edac.c 25.9 KB