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 gk20a *g = get_gk20a(dev);
|
||||||
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
||||||
struct gk20a_platform *platform = gk20a_get_platform(dev);
|
struct gk20a_platform *platform = gk20a_get_platform(dev);
|
||||||
int err, nice_value;
|
int err;
|
||||||
|
|
||||||
gk20a_dbg_fn("");
|
gk20a_dbg_fn("");
|
||||||
|
|
||||||
@@ -238,9 +238,6 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
|||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
nice_value = task_nice(current);
|
|
||||||
set_user_nice(current, -20);
|
|
||||||
|
|
||||||
/* Enable interrupt workqueue */
|
/* Enable interrupt workqueue */
|
||||||
if (!l->nonstall_work_queue) {
|
if (!l->nonstall_work_queue) {
|
||||||
l->nonstall_work_queue = alloc_workqueue("%s",
|
l->nonstall_work_queue = alloc_workqueue("%s",
|
||||||
@@ -253,23 +250,17 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
|||||||
return err;
|
return err;
|
||||||
|
|
||||||
err = gk20a_finalize_poweron(g);
|
err = gk20a_finalize_poweron(g);
|
||||||
if (err) {
|
if (err)
|
||||||
set_user_nice(current, nice_value);
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
|
||||||
|
|
||||||
err = nvgpu_finalize_poweron_linux(l);
|
err = nvgpu_finalize_poweron_linux(l);
|
||||||
if (err) {
|
if (err)
|
||||||
set_user_nice(current, nice_value);
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
|
||||||
|
|
||||||
nvgpu_init_mm_ce_context(g);
|
nvgpu_init_mm_ce_context(g);
|
||||||
|
|
||||||
nvgpu_vidmem_thread_unpause(&g->mm);
|
nvgpu_vidmem_thread_unpause(&g->mm);
|
||||||
|
|
||||||
set_user_nice(current, nice_value);
|
|
||||||
|
|
||||||
/* Initialise scaling: it will initialize scaling drive only once */
|
/* Initialise scaling: it will initialize scaling drive only once */
|
||||||
if (IS_ENABLED(CONFIG_GK20A_DEVFREQ) &&
|
if (IS_ENABLED(CONFIG_GK20A_DEVFREQ) &&
|
||||||
nvgpu_platform_is_silicon(g)) {
|
nvgpu_platform_is_silicon(g)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user