File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -1155,6 +1155,13 @@ static void bind_tz(struct thermal_zone_device *tz)
1155
1155
mutex_unlock (& thermal_list_lock );
1156
1156
}
1157
1157
1158
+ static void thermal_set_delay_jiffies (unsigned long * delay_jiffies , int delay_ms )
1159
+ {
1160
+ * delay_jiffies = msecs_to_jiffies (delay_ms );
1161
+ if (delay_ms > 1000 )
1162
+ * delay_jiffies = round_jiffies (* delay_jiffies );
1163
+ }
1164
+
1158
1165
/**
1159
1166
* thermal_zone_device_register() - register a new thermal zone device
1160
1167
* @type: the thermal zone device type
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ int thermal_build_list_of_policies(char *buf);
112
112
113
113
/* Helpers */
114
114
void thermal_zone_set_trips (struct thermal_zone_device * tz );
115
- void thermal_set_delay_jiffies (unsigned long * delay_jiffies , int delay_ms );
116
115
117
116
/* sysfs I/F */
118
117
int thermal_zone_create_device_groups (struct thermal_zone_device * , int );
Original file line number Diff line number Diff line change @@ -174,13 +174,6 @@ void thermal_zone_set_trips(struct thermal_zone_device *tz)
174
174
mutex_unlock (& tz -> lock );
175
175
}
176
176
177
- void thermal_set_delay_jiffies (unsigned long * delay_jiffies , int delay_ms )
178
- {
179
- * delay_jiffies = msecs_to_jiffies (delay_ms );
180
- if (delay_ms > 1000 )
181
- * delay_jiffies = round_jiffies (* delay_jiffies );
182
- }
183
-
184
177
static void thermal_cdev_set_cur_state (struct thermal_cooling_device * cdev ,
185
178
int target )
186
179
{
You can’t perform that action at this time.
0 commit comments