Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324034
b: refs/heads/master
c: bb9d3e4
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and H. Peter Anvin committed Aug 22, 2012
1 parent fd5f2e4 commit 2a2fa51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 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: 4dbf32c30f7e5379588a692c7bf80b05d9ef8026
refs/heads/master: bb9d3e473d5b324907e15dff4e54410b28ea50e2
16 changes: 5 additions & 11 deletions trunk/arch/x86/kernel/microcode_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,10 @@ static void microcode_fini_cpu(int cpu)

static enum ucode_state microcode_resume_cpu(int cpu)
{
struct ucode_cpu_info *uci = ucode_cpu_info + cpu;

if (!uci->mc)
return UCODE_NFOUND;

pr_debug("CPU%d updated upon resume\n", cpu);
apply_microcode_on_target(cpu);

if (apply_microcode_on_target(cpu))
return UCODE_ERROR;

return UCODE_OK;
}
Expand Down Expand Up @@ -404,14 +401,11 @@ static enum ucode_state microcode_init_cpu(int cpu)
static enum ucode_state microcode_update_cpu(int cpu)
{
struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
enum ucode_state ustate;

if (uci->valid)
ustate = microcode_resume_cpu(cpu);
else
ustate = microcode_init_cpu(cpu);
return microcode_resume_cpu(cpu);

return ustate;
return microcode_init_cpu(cpu);
}

static int mc_device_add(struct device *dev, struct subsys_interface *sif)
Expand Down

0 comments on commit 2a2fa51

Please sign in to comment.