Skip to contentSkip to conversation

x86/idle: Change arguments of mwait_idle_with_hints() to u32

PATCH Applied Uros Bizjak 2 participants 3 messages Apr 3, 2025 x86

lore
Share & tools
lore
#0 lore raw

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.

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
index d956d1be4873..1e7b2337ff17 100644
@@ -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 = &current_thread_info()->flags;
Signature · 1 line
2.49.0
merge bot Applied
#1 lore raw
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.

---
 arch/x86/include/asm/mwait.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/mwait.h +1 -1
index 26b68ee..5122260 100644
@@ -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 = &current_thread_info()->flags;
merge bot Applied
#2 lore raw
In reply to Uros Bizjak
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.

---
 arch/x86/include/asm/mwait.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/mwait.h +1 -1
index 6a2ec20..44d3bb2 100644
@@ -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 = &current_thread_info()->flags;