Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/all/20240904-devel-anna-maria-b4-timers-flseep-v1-2-e98760256370@linutronix.de

authored by

Anna-Maria Behnsen and committed by
Thomas Gleixner
662a1bfb fe90c5ba

+1 -1
+1 -1
kernel/cpu.c
··· 330 330 /* Poll for one millisecond */ 331 331 arch_cpuhp_sync_state_poll(); 332 332 } else { 333 - usleep_range_state(USEC_PER_MSEC, 2 * USEC_PER_MSEC, TASK_UNINTERRUPTIBLE); 333 + usleep_range(USEC_PER_MSEC, 2 * USEC_PER_MSEC); 334 334 } 335 335 sync = atomic_read(st); 336 336 }