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>
This commit is contained in:
parent
a96ccbefe4
commit
89092c61bc
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user