diff options
| author | David S. Miller <davem@davemloft.net> | 2009-06-15 03:02:23 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-06-15 03:02:23 -0700 | 
| commit | 9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb (patch) | |
| tree | 8d104ec2a459346b99413b0b77421ca7b9936c1a /arch/x86/include/asm/microcode.h | |
| parent | ca44d6e60f9de26281fda203f58b570e1748c015 (diff) | |
| parent | 45e3e1935e2857c54783291107d33323b3ef33c8 (diff) | |
| download | olio-linux-3.10-9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb.tar.xz olio-linux-3.10-9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb.zip  | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
	Documentation/feature-removal-schedule.txt
	drivers/scsi/fcoe/fcoe.c
	net/core/drop_monitor.c
	net/core/net-traces.c
Diffstat (limited to 'arch/x86/include/asm/microcode.h')
| -rw-r--r-- | arch/x86/include/asm/microcode.h | 25 | 
1 files changed, 18 insertions, 7 deletions
diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h index c882664716c..ef51b501e22 100644 --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h @@ -9,20 +9,31 @@ struct cpu_signature {  struct device; +enum ucode_state { UCODE_ERROR, UCODE_OK, UCODE_NFOUND }; +  struct microcode_ops { -	int  (*request_microcode_user) (int cpu, const void __user *buf, size_t size); -	int  (*request_microcode_fw) (int cpu, struct device *device); +	enum ucode_state (*request_microcode_user) (int cpu, +				const void __user *buf, size_t size); -	void (*apply_microcode) (int cpu); +	enum ucode_state (*request_microcode_fw) (int cpu, +				struct device *device); -	int  (*collect_cpu_info) (int cpu, struct cpu_signature *csig);  	void (*microcode_fini_cpu) (int cpu); + +	/* +	 * The generic 'microcode_core' part guarantees that +	 * the callbacks below run on a target cpu when they +	 * are being called. +	 * See also the "Synchronization" section in microcode_core.c. +	 */ +	int (*apply_microcode) (int cpu); +	int (*collect_cpu_info) (int cpu, struct cpu_signature *csig);  };  struct ucode_cpu_info { -	struct cpu_signature cpu_sig; -	int valid; -	void *mc; +	struct cpu_signature	cpu_sig; +	int			valid; +	void			*mc;  };  extern struct ucode_cpu_info ucode_cpu_info[];  |