diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index df4e4996..636bfad4 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |||
@@ -268,41 +268,6 @@ void gk20a_scale_resume(struct device *dev) | |||
268 | } | 268 | } |
269 | 269 | ||
270 | /* | 270 | /* |
271 | * gk20a_scale_notify(dev, busy) | ||
272 | * | ||
273 | * Calling this function informs that the device is idling (..or busy). This | ||
274 | * data is used to estimate the current load | ||
275 | */ | ||
276 | |||
277 | static void gk20a_scale_notify(struct device *dev, bool busy) | ||
278 | { | ||
279 | struct gk20a *g = get_gk20a(dev); | ||
280 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
281 | struct gk20a_scale_profile *profile = g->scale_profile; | ||
282 | struct devfreq *devfreq = l->devfreq; | ||
283 | |||
284 | /* Is the device profile initialised? */ | ||
285 | if (!(profile && devfreq)) | ||
286 | return; | ||
287 | |||
288 | mutex_lock(&devfreq->lock); | ||
289 | profile->dev_stat.busy = busy; | ||
290 | update_devfreq(devfreq); | ||
291 | mutex_unlock(&devfreq->lock); | ||
292 | } | ||
293 | |||
294 | void gk20a_scale_notify_idle(struct device *dev) | ||
295 | { | ||
296 | gk20a_scale_notify(dev, false); | ||
297 | |||
298 | } | ||
299 | |||
300 | void gk20a_scale_notify_busy(struct device *dev) | ||
301 | { | ||
302 | gk20a_scale_notify(dev, true); | ||
303 | } | ||
304 | |||
305 | /* | ||
306 | * gk20a_scale_get_dev_status(dev, *stat) | 271 | * gk20a_scale_get_dev_status(dev, *stat) |
307 | * | 272 | * |
308 | * This function queries the current device status. | 273 | * This function queries the current device status. |