aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/microcode_intel.c
diff options
context:
space:
mode:
authorPeter Oruba <peter.oruba@amd.com>2008-07-29 11:41:05 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-31 17:26:16 -0400
commitf516526febb75500f280def2108688d388df4e1e (patch)
tree6602d1c14c462dc9847285a0f238579b55aa6a78 /arch/x86/kernel/microcode_intel.c
parenta0ac87d61ba20932e54f08464d3f3439d78fa878 (diff)
x86: Intel microcode patch loader style corrections
Signed-off-by: Peter Oruba <peter.oruba@amd.com> Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/microcode_intel.c')
-rw-r--r--arch/x86/kernel/microcode_intel.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/kernel/microcode_intel.c b/arch/x86/kernel/microcode_intel.c
index 6da4a85ff465..a61986e8b691 100644
--- a/arch/x86/kernel/microcode_intel.c
+++ b/arch/x86/kernel/microcode_intel.c
@@ -55,8 +55,8 @@
55 * in a single CPU package. 55 * in a single CPU package.
56 * 1.10 28 Feb 2002 Asit K Mallick <asit.k.mallick@intel.com> and 56 * 1.10 28 Feb 2002 Asit K Mallick <asit.k.mallick@intel.com> and
57 * Tigran Aivazian <tigran@veritas.com>, 57 * Tigran Aivazian <tigran@veritas.com>,
58 * Serialize updates as required on HT processors due to speculative 58 * Serialize updates as required on HT processors due to
59 * nature of implementation. 59 * speculative nature of implementation.
60 * 1.11 22 Mar 2002 Tigran Aivazian <tigran@veritas.com> 60 * 1.11 22 Mar 2002 Tigran Aivazian <tigran@veritas.com>
61 * Fix the panic when writing zero-length microcode chunk. 61 * Fix the panic when writing zero-length microcode chunk.
62 * 1.12 29 Sep 2003 Nitin Kamble <nitin.a.kamble@intel.com>, 62 * 1.12 29 Sep 2003 Nitin Kamble <nitin.a.kamble@intel.com>,
@@ -71,7 +71,7 @@
71 * Thanks to Stuart Swales for pointing out this bug. 71 * Thanks to Stuart Swales for pointing out this bug.
72 */ 72 */
73 73
74//#define DEBUG /* pr_debug */ 74/* #define DEBUG */ /* pr_debug */
75#include <linux/capability.h> 75#include <linux/capability.h>
76#include <linux/kernel.h> 76#include <linux/kernel.h>
77#include <linux/init.h> 77#include <linux/init.h>
@@ -99,11 +99,11 @@ MODULE_DESCRIPTION("Microcode Update Driver");
99MODULE_AUTHOR("Tigran Aivazian <tigran@aivazian.fsnet.co.uk>"); 99MODULE_AUTHOR("Tigran Aivazian <tigran@aivazian.fsnet.co.uk>");
100MODULE_LICENSE("GPL"); 100MODULE_LICENSE("GPL");
101 101
102#define DEFAULT_UCODE_DATASIZE (2000) /* 2000 bytes */ 102#define DEFAULT_UCODE_DATASIZE (2000)
103#define MC_HEADER_SIZE (sizeof(struct microcode_header_intel)) /* 48 bytes */ 103#define MC_HEADER_SIZE (sizeof(struct microcode_header_intel))
104#define DEFAULT_UCODE_TOTALSIZE (DEFAULT_UCODE_DATASIZE + MC_HEADER_SIZE) /* 2048 bytes */ 104#define DEFAULT_UCODE_TOTALSIZE (DEFAULT_UCODE_DATASIZE + MC_HEADER_SIZE)
105#define EXT_HEADER_SIZE (sizeof(struct extended_sigtable)) /* 20 bytes */ 105#define EXT_HEADER_SIZE (sizeof(struct extended_sigtable))
106#define EXT_SIGNATURE_SIZE (sizeof(struct extended_signature)) /* 12 bytes */ 106#define EXT_SIGNATURE_SIZE (sizeof(struct extended_signature))
107#define DWSIZE (sizeof(u32)) 107#define DWSIZE (sizeof(u32))
108#define get_totalsize(mc) \ 108#define get_totalsize(mc) \
109 (((struct microcode_intel *)mc)->hdr.totalsize ? \ 109 (((struct microcode_intel *)mc)->hdr.totalsize ? \