]> git.karo-electronics.de Git - linux-beck.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, 11 Jun 2012 16:23:44 +0000 (13:23 -0300)
commitfd63312dfe70b8279618b4d77dc951b6e309ffa2
treea6a4012398f8977d7059d3dd6e85c120c4fc50fd
parent452a6bf955ee1842361742833e40e046287308f4
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