diff options
author | Denys Vlasenko | 2022-01-07 01:33:46 +0100 |
---|---|---|
committer | Denys Vlasenko | 2022-01-07 01:33:46 +0100 |
commit | 89092c61bc37ed61bfacf10433d52b9bc4299116 (patch) | |
tree | 39cd9964c35880eb8a18a9254203cf62cdf49514 | |
parent | a96ccbefe417aaac6a2ce59c788e01fc0f83902f (diff) | |
download | busybox-89092c61bc37ed61bfacf10433d52b9bc4299116.zip busybox-89092c61bc37ed61bfacf10433d52b9bc4299116.tar.gz |
powertop: fix cpuid asm: ebx saving/restoring is properly done by gcc
function old new delta
print_intel_cstates 481 477 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | procps/powertop.c | 5 |
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 */ |