File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
drivers/cpuidle/governors Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -117,15 +117,14 @@ static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev);
117
117
static unsigned int get_typical_interval (struct menu_device * data )
118
118
{
119
119
int i , divisor ;
120
- unsigned int min , max , thresh , avg ;
120
+ unsigned int max , thresh , avg ;
121
121
uint64_t sum , variance ;
122
122
123
123
thresh = INT_MAX ; /* Discard outliers above this value */
124
124
125
125
again :
126
126
127
127
/* First calculate the average of past intervals */
128
- min = UINT_MAX ;
129
128
max = 0 ;
130
129
sum = 0 ;
131
130
divisor = 0 ;
@@ -136,9 +135,6 @@ static unsigned int get_typical_interval(struct menu_device *data)
136
135
divisor ++ ;
137
136
if (value > max )
138
137
max = value ;
139
-
140
- if (value < min )
141
- min = value ;
142
138
}
143
139
}
144
140
You can’t perform that action at this time.
0 commit comments