Skip to content

Commit 662a1bf

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
cpu: Use already existing usleep_range()
usleep_range() is a wrapper arount usleep_range_state() which hands in TASK_UNTINTERRUPTIBLE as state argument. Use already exising wrapper usleep_range(). No functional change. Signed-off-by: Anna-Maria Behnsen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Link: https://lore.kernel.org/all/20240904-devel-anna-maria-b4-timers-flseep-v1-2-e98760256370@linutronix.de
1 parent fe90c5b commit 662a1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static bool cpuhp_wait_for_sync_state(unsigned int cpu, enum cpuhp_sync_state st
330330
/* Poll for one millisecond */
331331
arch_cpuhp_sync_state_poll();
332332
} else {
333-
usleep_range_state(USEC_PER_MSEC, 2 * USEC_PER_MSEC, TASK_UNINTERRUPTIBLE);
333+
usleep_range(USEC_PER_MSEC, 2 * USEC_PER_MSEC);
334334
}
335335
sync = atomic_read(st);
336336
}

0 commit comments

Comments
 (0)