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

cpufreq: Remove references to 10ms min sampling rate

A minimum sampling rate value of 10ms was introduced in:
commit cef9615a853e ("[CPUFREQ] ondemand: Uncouple minimal sampling rate from HZ in NO_HZ case")

The use of this value was removed in:
commit ed4676e25463 ("cpufreq: Replace "max_transition_latency" with "dynamic_switching"")

Remove:
- a comment referencing this value
- an unused macro associated to this value

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Pierre Gondois and committed by
Rafael J. Wysocki
88debc69 1f4b7fdd

+1 -4
-1
drivers/cpufreq/cpufreq_ondemand.c
··· 22 22 #define DEF_SAMPLING_DOWN_FACTOR (1) 23 23 #define MAX_SAMPLING_DOWN_FACTOR (100000) 24 24 #define MICRO_FREQUENCY_UP_THRESHOLD (95) 25 - #define MICRO_FREQUENCY_MIN_SAMPLE_RATE (10000) 26 25 #define MIN_FREQUENCY_UP_THRESHOLD (1) 27 26 #define MAX_FREQUENCY_UP_THRESHOLD (100) 28 27
+1 -3
include/linux/cpufreq.h
··· 569 569 570 570 /* 571 571 * The polling frequency depends on the capability of the processor. Default 572 - * polling frequency is 1000 times the transition latency of the processor. The 573 - * ondemand governor will work on any processor with transition latency <= 10ms, 574 - * using appropriate sampling rate. 572 + * polling frequency is 1000 times the transition latency of the processor. 575 573 */ 576 574 #define LATENCY_MULTIPLIER (1000) 577 575