Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162182
b: refs/heads/master
c: f931a70
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent aa183cc commit fad8e59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 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: 45da89e559219d24a639f24a8d95a6c71d54736f
refs/heads/master: f931a70c370cc826191a51a79500b34cd592b25b
8 changes: 4 additions & 4 deletions trunk/drivers/staging/hv/Hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ HvQueryHypervisorPresence (
ecx = 0;
edx = 0;
op = HvCpuIdFunctionVersionAndFeatures;
do_cpuid(op, &eax, &ebx, &ecx, &edx);
cpuid(op, &eax, &ebx, &ecx, &edx);

return (ecx & HV_PRESENT_BIT);
}
Expand Down Expand Up @@ -99,7 +99,7 @@ HvQueryHypervisorInfo (
ecx = 0;
edx = 0;
op = HvCpuIdFunctionHvVendorAndMaxFunction;
do_cpuid(op, &eax, &ebx, &ecx, &edx);
cpuid(op, &eax, &ebx, &ecx, &edx);

DPRINT_INFO(VMBUS, "Vendor ID: %c%c%c%c%c%c%c%c%c%c%c%c",
(ebx & 0xFF),
Expand All @@ -121,7 +121,7 @@ HvQueryHypervisorInfo (
ecx = 0;
edx = 0;
op = HvCpuIdFunctionHvInterface;
do_cpuid(op, &eax, &ebx, &ecx, &edx);
cpuid(op, &eax, &ebx, &ecx, &edx);

DPRINT_INFO(VMBUS, "Interface ID: %c%c%c%c",
(eax & 0xFF),
Expand All @@ -135,7 +135,7 @@ HvQueryHypervisorInfo (
ecx = 0;
edx = 0;
op = HvCpuIdFunctionMsHvVersion;
do_cpuid(op, &eax, &ebx, &ecx, &edx);
cpuid(op, &eax, &ebx, &ecx, &edx);
DPRINT_INFO(VMBUS, "OS Build:%d-%d.%d-%d-%d.%d",
eax,
ebx >> 16,
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/staging/hv/include/osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ struct osd_timer {
#endif


static inline void do_cpuid(unsigned int op, unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx)
{
__asm__ __volatile__("cpuid" : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) : "0" (op), "c" (ecx));
}


/* Osd routines */

extern void* VirtualAllocExec(unsigned int size);
Expand Down

0 comments on commit fad8e59

Please sign in to comment.