]> www.infradead.org Git - users/mchehab/edac.git/commit
edac: Move grain/dtype/edac_type calculus to be out of channel loop
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 28 Mar 2012 22:37:59 +0000 (19:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 28 May 2012 22:14:02 +0000 (19:14 -0300)
commitc25496f387e418f2cda4964c7077e9a9f47713df
tree1df1b8caa87e1239c03cd7b0528e0c3ab9f3d10e
parent4820229b793e978201958bd0f0707ccab9bf89b6
edac: Move grain/dtype/edac_type calculus to be out of channel loop

The 3e7bddc changeset (edac: move dimm properties to struct memset_info)
moved the calculus inside a loop. However, at those stuff are common to
all channels, on several drivers, it is better to put the calculus
outside the loop, to optimize the code.

Reported-by: Aristeu Rozanski Filho <arozansk@redhat.com>
Reviewed-by: Aristeu Rozanski <arozansk@redhat.com>
Cc: Mark Gross <mark.gross@intel.com>
Cc: Doug Thompson <norsk5@yahoo.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/cpc925_edac.c
drivers/edac/e752x_edac.c
drivers/edac/e7xxx_edac.c