]> 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>
Sat, 12 May 2012 14:10:35 +0000 (11:10 -0300)
commitf5b1a5e284648087687abafddd656ec9a1534e3e
tree31bf61058218c137e729b6c016bf107b928d5871
parent6b0ebe95c45abd0d66f2d51836d29d2dfbf4da7b
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