x86, cpuid: Simplify the code in cpuid_open
authorJohn Kacur <jkacur@redhat.com>
Thu, 8 Oct 2009 15:20:15 +0000 (17:20 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 8 Oct 2009 23:14:02 +0000 (16:14 -0700)
commit5a943617ef52e9f79cd7cf437aad8870be27aabb
tree967a0145cb287468c8c36c5f3d227cabb30a3e6e
parent170a0bc3808909d8ea0f3f9c725c6565efe7f9c4
x86, cpuid: Simplify the code in cpuid_open

Peter picked up my patch for tip/x86/cpu that removes the bkl in
cpuid_open. Ingo subsequently merged that into tip/master.

This patch folds back in tglx's 55968ede164ae523692f00717f50cd926f1382a0
to my patch that removed the bkl.

This simplifies the code, and makes it consistent with the changes to
kill the bkl in msr.c as well.

Originally-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpuid.c