mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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 <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1692609 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a5f3fe9506
commit
a1a8ceca0c
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user