summaryrefslogtreecommitdiff
path: root/procps/powertop.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/powertop.c')
-rw-r--r--procps/powertop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/procps/powertop.c b/procps/powertop.c
index 24c2b32..18ddaa3 100644
--- a/procps/powertop.c
+++ b/procps/powertop.c
@@ -506,12 +506,9 @@ static void cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx,
{
/* EAX value specifies what information to return */
asm (
- " pushl %%ebx\n" /* Save EBX */
" cpuid\n"
- " movl %%ebx, %1\n" /* Save content of EBX */
- " popl %%ebx\n" /* Restore EBX */
: "=a"(*eax), /* Output */
- "=r"(*ebx),
+ "=b"(*ebx),
"=c"(*ecx),
"=d"(*edx)
: "0"(*eax), /* Input */