x86/idle: Change arguments of mwait_idle_with_hints() to u32
PATCH 1/1 x86/idle: Change arguments of mwait_idle_with_hints() to u32
All functions in mwait_idle_with_hints() cast eax and ecx arguments to u32. Propagate argument type to the enclosing function.
Suggested-by Andrew Cooper <[email protected]>
Signed-off-by Uros Bizjak <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
--- arch/x86/include/asm/mwait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/mwait.h +1 -1
@@ -115,7 +115,7 @@ static __always_inline void __sti_mwait(u32 eax, u32 ecx)* New with Core Duo processors, MWAIT can take some hints based on CPU * capability. */ -static __always_inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx) +static __always_inline void mwait_idle_with_hints(u32 eax, u32 ecx) {if (static_cpu_has_bug (X86_BUG_MONITOR ) || !current_set_polling_and_test ()) {const void *addr = ¤t_thread_info ()->flags;
Signature · 1 line
2.49.0
The following commit has been merged into the x86/mm branch of tip:
The following commit has been merged into the x86/mm branch of tip:
Commit-ID: 532aa71ed23b79e74171de7b6b6369a08b55c813 Gitweb: https://git.kernel.org/tip/532aa71ed23b79e74171de7b6b6369a08b55c813 Author: Uros Bizjak <[email protected]> AuthorDate: Thu, 03 Apr 2025 09:30:49 +02:00 Committer: Ingo Molnar <[email protected]> CommitterDate: Thu, 03 Apr 2025 15:40:43 +02:00
x86/idle: Change arguments of mwait_idle_with_hints() to u32
All functions in mwait_idle_with_hints() cast eax and ecx arguments to u32. Propagate argument type to the enclosing function.
Suggested-by Andrew Cooper <[email protected]>
Signed-off-by Uros Bizjak <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/include/asm/mwait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/mwait.h +1 -1
@@ -109,7 +109,7 @@ static __always_inline void __sti_mwait(u32 eax, u32 ecx)* New with Core Duo processors, MWAIT can take some hints based on CPU * capability. */ -static __always_inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx) +static __always_inline void mwait_idle_with_hints(u32 eax, u32 ecx) {if (static_cpu_has_bug (X86_BUG_MONITOR ) || !current_set_polling_and_test ()) {const void *addr = ¤t_thread_info ()->flags;
The following commit has been merged into the x86/mm branch of tip:
The following commit has been merged into the x86/mm branch of tip:
Commit-ID: a17b37a3f416c9e385bbd2b5fc603d337eab76eb Gitweb: https://git.kernel.org/tip/a17b37a3f416c9e385bbd2b5fc603d337eab76eb Author: Uros Bizjak <[email protected]> AuthorDate: Thu, 03 Apr 2025 09:30:49 +02:00 Committer: Ingo Molnar <[email protected]> CommitterDate: Thu, 03 Apr 2025 16:27:42 +02:00
x86/idle: Change arguments of mwait_idle_with_hints() to u32
All functions in mwait_idle_with_hints() cast eax and ecx arguments to u32. Propagate argument type to the enclosing function.
Suggested-by Andrew Cooper <[email protected]>
Signed-off-by Uros Bizjak <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/include/asm/mwait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/mwait.h +1 -1
@@ -110,7 +110,7 @@ static __always_inline void __sti_mwait(u32 eax, u32 ecx)* New with Core Duo processors, MWAIT can take some hints based on CPU * capability. */ -static __always_inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx) +static __always_inline void mwait_idle_with_hints(u32 eax, u32 ecx) {if (static_cpu_has_bug (X86_BUG_MONITOR ) || !current_set_polling_and_test ()) {const void *addr = ¤t_thread_info ()->flags;