gpu: nvgpu: Initialize Linux sched in Linux code

Initialize Linux scheduling extensions from Linux code. This removes
a dependency between common and Linux code.

JIRA NVGPU-259

Change-Id: Ibd882f82479eaac05ecc8cf743dd4a89bd7386f2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1588663
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-10-30 13:29:14 -07:00
committed by mobile promotions
parent e1120727e7
commit 952606b3b9
3 changed files with 19 additions and 7 deletions

View File

@@ -237,6 +237,12 @@ int gk20a_pm_finalize_poweron(struct device *dev)
if (platform->has_cde)
gk20a_init_cde_support(l);
err = gk20a_sched_ctrl_init(g);
if (err) {
nvgpu_err(g, "failed to init sched control");
return err;
}
done:
if (err)
g->power_on = false;