Skip to content

Commit 88debc6

Browse files
pierregondoisrafaeljw
authored andcommitted
cpufreq: Remove references to 10ms min sampling rate
A minimum sampling rate value of 10ms was introduced in: commit cef9615 ("[CPUFREQ] ondemand: Uncouple minimal sampling rate from HZ in NO_HZ case") The use of this value was removed in: commit ed4676e ("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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 1f4b7fd commit 88debc6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/cpufreq/cpufreq_ondemand.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#define DEF_SAMPLING_DOWN_FACTOR (1)
2323
#define MAX_SAMPLING_DOWN_FACTOR (100000)
2424
#define MICRO_FREQUENCY_UP_THRESHOLD (95)
25-
#define MICRO_FREQUENCY_MIN_SAMPLE_RATE (10000)
2625
#define MIN_FREQUENCY_UP_THRESHOLD (1)
2726
#define MAX_FREQUENCY_UP_THRESHOLD (100)
2827

include/linux/cpufreq.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,7 @@ static inline unsigned long cpufreq_scale(unsigned long old, u_int div,
569569

570570
/*
571571
* 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.
575573
*/
576574
#define LATENCY_MULTIPLIER (1000)
577575

0 commit comments

Comments
 (0)