mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +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 <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
This commit is contained in:
		
							parent
							
								
									2fb34b1566
								
							
						
					
					
						commit
						a17b37a3f4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -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
 | 
					 * New with Core Duo processors, MWAIT can take some hints based on CPU
 | 
				
			||||||
 * capability.
 | 
					 * 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()) {
 | 
						if (static_cpu_has_bug(X86_BUG_MONITOR) || !current_set_polling_and_test()) {
 | 
				
			||||||
		const void *addr = ¤t_thread_info()->flags;
 | 
							const void *addr = ¤t_thread_info()->flags;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue