Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8af99b0f authored by Jeremy Gebben's avatar Jeremy Gebben Committed by Vladimir Razgulin
Browse files

msm: kgsl: make msm-adreno-tz the default governor for adreno



On targets where trustzone is available, use the trustzone
based governor instead of simple_ondemand.

Change-Id: Ie11c57684fc63a26e82a5c4816a35a327a1bf945
Signed-off-by: default avatarJeremy Gebben <jgebben@codeaurora.org>
Signed-off-by: default avatarVladimir Razgulin <vrazguli@codeaurora.org>
parent 90fa192b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ config MSM_KGSL
	select PM_DEVFREQ
	select DEVFREQ_GOV_SIMPLE_ONDEMAND
	select DEVFREQ_GOV_PERFORMANCE
	select DEVFREQ_GOV_MSM_ADRENO_TZ
	---help---
	  3D graphics driver. Required to use hardware accelerated
	  OpenGL ES 2.0 and 1.1.
@@ -65,6 +66,7 @@ config MSM_KGSL_2D

config MSM_ADRENO_DEFAULT_GOVERNOR
	string "devfreq governor for the adreno core"
	default "msm-adreno-tz" if DEVFREQ_GOV_MSM_ADRENO_TZ
	default "simple_ondemand"
	depends on MSM_KGSL

+5 −0
Original line number Diff line number Diff line
@@ -87,8 +87,13 @@ static struct devfreq_simple_ondemand_data adreno_ondemand_data = {
	.downdifferential = 20,
};

static struct devfreq_msm_adreno_tz_data adreno_tz_data = {
	.device_id = KGSL_DEVICE_3D0,
};

static const struct devfreq_governor_data adreno_governors[] = {
	{ .name = "simple_ondemand", .data = &adreno_ondemand_data },
	{ .name = "msm-adreno-tz", .data = &adreno_tz_data },
};

static const struct kgsl_functable adreno_functable;