aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorYU Jincheng <shana@zju.edu.cn>2021-09-29 17:37:26 +0800
committerDenys Vlasenko <vda.linux@googlemail.com>2021-10-07 15:22:35 +0200
commit1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e (patch)
treea625455a60081738812f469de6a02010f0c5b252 /procps
parent17e6fb06b3d36eae11575b226858e8474e2b46d3 (diff)
downloadbusybox-w32-1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e.tar.gz
busybox-w32-1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e.tar.bz2
busybox-w32-1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e.zip
*: generalize "const trick"
While at it, change all "__asm__" to "asm" Co-authored-by: canyie <31466456+canyie@users.noreply.github.com> Signed-off-by: YU Jincheng <shana@zju.edu.cn> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/powertop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/powertop.c b/procps/powertop.c
index fc6018b7a..24c2b320f 100644
--- a/procps/powertop.c
+++ b/procps/powertop.c
@@ -505,7 +505,7 @@ static void cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx,
505 unsigned int *edx) 505 unsigned int *edx)
506{ 506{
507 /* EAX value specifies what information to return */ 507 /* EAX value specifies what information to return */
508 __asm__( 508 asm (
509 " pushl %%ebx\n" /* Save EBX */ 509 " pushl %%ebx\n" /* Save EBX */
510 " cpuid\n" 510 " cpuid\n"
511 " movl %%ebx, %1\n" /* Save content of EBX */ 511 " movl %%ebx, %1\n" /* Save content of EBX */