Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113337
b: refs/heads/master
c: a1c75cc
h: refs/heads/master
i:
  113335: d00196c
v: v3
  • Loading branch information
Ingo Molnar committed Sep 14, 2008
1 parent 168b482 commit aaa5266
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0a29b62a9cac6b7d83b7514679f2ed8d33d4372
refs/heads/master: a1c75cc5018f17ff6d80ce45a13435b1536f76db
4 changes: 1 addition & 3 deletions trunk/arch/x86/kernel/microcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
* Fix sigmatch() macro to handle old CPUs with pf == 0.
* Thanks to Stuart Swales for pointing out this bug.
*/

/* #define DEBUG pr_debug */
#include <linux/capability.h>
#include <linux/kernel.h>
#include <linux/init.h>
Expand Down Expand Up @@ -396,7 +394,7 @@ static int mc_sysdev_resume(struct sys_device *dev)

if (!cpu_online(cpu))
return 0;
pr_debug("microcode: CPU%d resumed\n", cpu);

/* only CPU 0 will apply ucode here */
microcode_update_cpu(0);
return 0;
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int get_matching_microcode(int cpu, void *mc, int rev)
unsigned int i = 0;

/*
* dimm: do we need this? Why an update via /dev/... is different
* FIXME! dimm: do we need this? Why an update via /dev/... is different
* from the one via firmware?
*
* This is a tricky part. We might be called from a write operation
Expand Down Expand Up @@ -246,7 +246,7 @@ static void * get_next_ucode(u8 *buf, unsigned int size,
return NULL;
}

/* Why not by means of get_totalsize(hdr)? */
/* FIXME! dimm: Why not by means of get_totalsize(hdr)? */
total_size = (unsigned long) (hdr[4] + (hdr[5] << 8));

printk(KERN_INFO "microcode: size %u, total_size %u\n",
Expand Down Expand Up @@ -342,6 +342,8 @@ static int generic_load_microcode(int cpu, void *data, size_t size,

mc_header = (struct microcode_header_amd *)mc;
if (get_matching_microcode(cpu, mc, new_rev)) {
if (new_mc)
vfree(new_mc);
new_rev = mc_header->patch_id;
new_mc = mc;
} else
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/microcode_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
* Fix sigmatch() macro to handle old CPUs with pf == 0.
* Thanks to Stuart Swales for pointing out this bug.
*/

/* #define DEBUG */ /* pr_debug */
#include <linux/capability.h>
#include <linux/kernel.h>
#include <linux/init.h>
Expand Down Expand Up @@ -356,6 +354,8 @@ static int generic_load_microcode(int cpu, void *data, size_t size,
}

if (get_matching_microcode(&uci->cpu_sig, mc, new_rev)) {
if (new_mc)
vfree(new_mc);
new_rev = mc_header.rev;
new_mc = mc;
} else
Expand Down

0 comments on commit aaa5266

Please sign in to comment.