Skip to content

Commit f0af071

Browse files
committed
intel_idle: Update arguments of mwait_idle_with_hints()
JIRA: https://issues.redhat.com/browse/RHEL-113139 commit 7284023 Author: Uros Bizjak <ubizjak@gmail.com> Date: Mon Jun 9 08:35:01 2025 +0200 intel_idle: Update arguments of mwait_idle_with_hints() Commit a17b37a ("x86/idle: Change arguments of mwait_idle_with_hints() to u32") changed the type of arguments of mwait_idle_with_hints() from unsigned long to u32. Change the type of variables in the call to mwait_idle_with_hints() to unsigned int to follow the change. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Link: https://patch.msgid.link/20250609063528.48715-1-ubizjak@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent ddb1554 commit f0af071

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/idle/intel_idle.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ static __always_inline int __intel_idle(struct cpuidle_device *dev,
150150
int index, bool irqoff)
151151
{
152152
struct cpuidle_state *state = &drv->states[index];
153-
unsigned long eax = flg2MWAIT(state->flags);
154-
unsigned long ecx = 1*irqoff; /* break on interrupt flag */
153+
unsigned int eax = flg2MWAIT(state->flags);
154+
unsigned int ecx = 1*irqoff; /* break on interrupt flag */
155155

156156
mwait_idle_with_hints(eax, ecx);
157157

@@ -224,9 +224,9 @@ static __cpuidle int intel_idle_xstate(struct cpuidle_device *dev,
224224
static __cpuidle int intel_idle_s2idle(struct cpuidle_device *dev,
225225
struct cpuidle_driver *drv, int index)
226226
{
227-
unsigned long ecx = 1; /* break on interrupt flag */
228227
struct cpuidle_state *state = &drv->states[index];
229-
unsigned long eax = flg2MWAIT(state->flags);
228+
unsigned int eax = flg2MWAIT(state->flags);
229+
unsigned int ecx = 1; /* break on interrupt flag */
230230

231231
if (state->flags & CPUIDLE_FLAG_INIT_XSTATE)
232232
fpu_idle_fpregs();

0 commit comments

Comments
 (0)