]> git.karo-electronics.de Git - linux-beck.git/commit
x86, microcode, AMD: Simplify get_next_ucode
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 31 Dec 2010 15:57:48 +0000 (16:57 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 9 Feb 2011 15:05:34 +0000 (16:05 +0100)
commit7cc27349cbfec271eecec9488b4bf3f3fadb2ce4
tree04baaf1293f67e7e661b46c7f7bcff082a14e7ee
parent10de52d6655ef0d4a1b8d2804db30208c26601ed
x86, microcode, AMD: Simplify get_next_ucode

Do not copy the section header but look at it directly through the
pointer. Also, make it return a ptr to a ucode header directly
thus dropping a bunch of unneeded casts. Finally, simplify
generic_load_microcode(), while at it.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Andreas Herrmann <Andreas.Herrmann3@amd.com>
arch/x86/kernel/microcode_amd.c