From a1a8ceca0c5cdc8484e4da66019c066be716f9c8 Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Wed, 11 Apr 2018 09:46:45 +0530 Subject: gpu: nvgpu: remove the setting of nice values in gk20a_poweron set_user_nice is no longer needed to improve the efficiency of gk20a_finalize_poweron and can be removed as suggested by Terje. Change-Id: I303bbee266b4624bb775ea793f843dbfc8f88c5d Signed-off-by: Debarshi Dutta Reviewed-on: https://git-master.nvidia.com/r/1692609 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/module.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 53c78447..015f2bf8 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c @@ -216,7 +216,7 @@ int gk20a_pm_finalize_poweron(struct device *dev) struct gk20a *g = get_gk20a(dev); struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); struct gk20a_platform *platform = gk20a_get_platform(dev); - int err, nice_value; + int err; gk20a_dbg_fn(""); @@ -238,9 +238,6 @@ int gk20a_pm_finalize_poweron(struct device *dev) if (err) return err; - nice_value = task_nice(current); - set_user_nice(current, -20); - /* Enable interrupt workqueue */ if (!l->nonstall_work_queue) { l->nonstall_work_queue = alloc_workqueue("%s", @@ -253,23 +250,17 @@ int gk20a_pm_finalize_poweron(struct device *dev) return err; err = gk20a_finalize_poweron(g); - if (err) { - set_user_nice(current, nice_value); + if (err) goto done; - } err = nvgpu_finalize_poweron_linux(l); - if (err) { - set_user_nice(current, nice_value); + if (err) goto done; - } nvgpu_init_mm_ce_context(g); nvgpu_vidmem_thread_unpause(&g->mm); - set_user_nice(current, nice_value); - /* Initialise scaling: it will initialize scaling drive only once */ if (IS_ENABLED(CONFIG_GK20A_DEVFREQ) && nvgpu_platform_is_silicon(g)) { -- cgit v1.2.2