Skip to content

Commit 1b541e1

Browse files
kaushlenrafaeljw
authored andcommitted
cpufreq: ACPI: Replace udelay() with usleep_range()
Replace udelay() with usleep_range() in check_freqs() to allow CPU scheduling during frequency polling. Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> [ rjw: Changelog edits ] Link: https://patch.msgid.link/20251119031109.134583-1-kaushlendra.kumar@intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent b20a374 commit 1b541e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static unsigned int check_freqs(struct cpufreq_policy *policy,
395395
cur_freq = extract_freq(policy, get_cur_val(mask, data));
396396
if (cur_freq == freq)
397397
return 1;
398-
udelay(10);
398+
usleep_range(10, 15);
399399
}
400400
return 0;
401401
}

0 commit comments

Comments
 (0)