x86: move per CPU microcode structure declaration to header file
This structure will be later used by other modules as well and needs therfore to be moved out to a header file. 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>
This commit is contained in:
@@ -125,13 +125,7 @@ static DEFINE_SPINLOCK(microcode_update_lock);
|
|||||||
/* no concurrent ->write()s are allowed on /dev/cpu/microcode */
|
/* no concurrent ->write()s are allowed on /dev/cpu/microcode */
|
||||||
static DEFINE_MUTEX(microcode_mutex);
|
static DEFINE_MUTEX(microcode_mutex);
|
||||||
|
|
||||||
static struct ucode_cpu_info {
|
static struct ucode_cpu_info ucode_cpu_info[NR_CPUS];
|
||||||
int valid;
|
|
||||||
unsigned int sig;
|
|
||||||
unsigned int pf;
|
|
||||||
unsigned int rev;
|
|
||||||
struct microcode *mc;
|
|
||||||
} ucode_cpu_info[NR_CPUS];
|
|
||||||
|
|
||||||
static void collect_cpu_info(int cpu_num)
|
static void collect_cpu_info(int cpu_num)
|
||||||
{
|
{
|
||||||
|
@@ -29,3 +29,11 @@ struct extended_sigtable {
|
|||||||
unsigned int reserved[3];
|
unsigned int reserved[3];
|
||||||
struct extended_signature sigs[0];
|
struct extended_signature sigs[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ucode_cpu_info {
|
||||||
|
int valid;
|
||||||
|
unsigned int sig;
|
||||||
|
unsigned int pf;
|
||||||
|
unsigned int rev;
|
||||||
|
struct microcode *mc;
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user