Skip to content

Commit a17b37a

Browse files
ubizjakIngo Molnar
authored andcommitted
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 <andrew.cooper3@citrix.com> Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20250403073105.245987-1-ubizjak@gmail.com
1 parent 2fb34b1 commit a17b37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/mwait.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static __always_inline void __sti_mwait(u32 eax, u32 ecx)
110110
* New with Core Duo processors, MWAIT can take some hints based on CPU
111111
* capability.
112112
*/
113-
static __always_inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx)
113+
static __always_inline void mwait_idle_with_hints(u32 eax, u32 ecx)
114114
{
115115
if (static_cpu_has_bug(X86_BUG_MONITOR) || !current_set_polling_and_test()) {
116116
const void *addr = &current_thread_info()->flags;

0 commit comments

Comments
 (0)