Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48447
b: refs/heads/master
c: ad4e680
h: refs/heads/master
i:
  48445: 8dd8179
  48443: 2dbadb2
  48439: 2dfd6f4
  48431: 08baab8
  48415: 2ff9991
  48383: d4416ff
v: v3
  • Loading branch information
Alexey Dobriyan authored and Andi Kleen committed Feb 13, 2007
1 parent 6c2ee9d commit d434946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: d958f143329e685d114725b64fe6bef22994c74c
refs/heads/master: ad4e680fb2220518de5118a8e734240d4c374fe2
7 changes: 2 additions & 5 deletions trunk/arch/i386/kernel/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static struct class *cpuid_class;
#ifdef CONFIG_SMP

struct cpuid_command {
int cpu;
u32 reg;
u32 *data;
};
Expand All @@ -57,8 +56,7 @@ static void cpuid_smp_cpuid(void *cmd_block)
{
struct cpuid_command *cmd = (struct cpuid_command *)cmd_block;

if (cmd->cpu == smp_processor_id())
cpuid(cmd->reg, &cmd->data[0], &cmd->data[1], &cmd->data[2],
cpuid(cmd->reg, &cmd->data[0], &cmd->data[1], &cmd->data[2],
&cmd->data[3]);
}

Expand All @@ -70,11 +68,10 @@ static inline void do_cpuid(int cpu, u32 reg, u32 * data)
if (cpu == smp_processor_id()) {
cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
} else {
cmd.cpu = cpu;
cmd.reg = reg;
cmd.data = data;

smp_call_function(cpuid_smp_cpuid, &cmd, 1, 1);
smp_call_function_single(cpu, cpuid_smp_cpuid, &cmd, 1, 1);
}
preempt_enable();
}
Expand Down

0 comments on commit d434946

Please sign in to comment.