x86, MCE, AMD: Move invariant code out from loop body
authorChen Yucong <slaoub@gmail.com>
Thu, 2 Oct 2014 15:20:12 +0000 (23:20 +0800)
committerBorislav Petkov <bp@suse.de>
Tue, 21 Oct 2014 20:12:56 +0000 (22:12 +0200)
commit69b957583580bf40624553c64d802fefb54199cb
tree9ebb3ec22218dd0c9f99712a34340c7ba809cf32
parent44612a3ac671d7b9a9b987ab73dcc776204ac4d5
x86, MCE, AMD: Move invariant code out from loop body

Assigning to mce_threshold_vector is loop-invariant code in
mce_amd_feature_init(). So do it only once, out of loop body.

Signed-off-by: Chen Yucong <slaoub@gmail.com>
Link: http://lkml.kernel.org/r/1412263212.8085.6.camel@debian
[ Boris: commit message corrections. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mcheck/mce_amd.c