Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70989
b: refs/heads/master
c: 4a40cb1
h: refs/heads/master
i:
  70987: 9562b88
v: v3
  • Loading branch information
Avi Kivity authored and Thomas Gleixner committed Oct 17, 2007
1 parent 478a17c commit 49588e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 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: cddf7ff766ee53e24ff37f55a897efc90cb3526e
refs/heads/master: 4a40cb1ec68d021125e37a69a0be79dc16dd41b1
22 changes: 3 additions & 19 deletions trunk/arch/x86/kernel/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@

static struct class *cpuid_class;

#ifdef CONFIG_SMP

struct cpuid_command {
u32 reg;
u32 *data;
Expand All @@ -62,25 +60,11 @@ static inline void do_cpuid(int cpu, u32 reg, u32 * data)
{
struct cpuid_command cmd;

preempt_disable();
if (cpu == smp_processor_id()) {
cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
} else {
cmd.reg = reg;
cmd.data = data;
cmd.reg = reg;
cmd.data = data;

smp_call_function_single(cpu, cpuid_smp_cpuid, &cmd, 1, 1);
}
preempt_enable();
smp_call_function_single(cpu, cpuid_smp_cpuid, &cmd, 1, 1);
}
#else /* ! CONFIG_SMP */

static inline void do_cpuid(int cpu, u32 reg, u32 * data)
{
cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
}

#endif /* ! CONFIG_SMP */

static loff_t cpuid_seek(struct file *file, loff_t offset, int orig)
{
Expand Down

0 comments on commit 49588e4

Please sign in to comment.