From 85dbbd221a27b98c33e1ddbe1d473e8b29ca185c Mon Sep 17 00:00:00 2001 From: Harshdeep Dhatt Date: Fri, 17 Apr 2020 12:39:11 -0600 Subject: [PATCH] msm: kgsl: Make the gpubw governor immutable The kgsl-busmon devfreq device is only set up to work with the gpubw governor. So make it immutable to avoid unexpected failures when re-assigning a different governor. Change-Id: I545fa12efebf80aa38ff6270488f088fdaac2b84 Signed-off-by: Harshdeep Dhatt --- drivers/gpu/msm/governor_gpubw_mon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/msm/governor_gpubw_mon.c b/drivers/gpu/msm/governor_gpubw_mon.c index 50695088900a..0b8cf34c707f 100644 --- a/drivers/gpu/msm/governor_gpubw_mon.c +++ b/drivers/gpu/msm/governor_gpubw_mon.c @@ -236,6 +236,7 @@ static struct devfreq_governor devfreq_gpubw = { .name = "gpubw_mon", .get_target_freq = devfreq_gpubw_get_target, .event_handler = devfreq_gpubw_event_handler, + .immutable = 1, }; static int __init devfreq_gpubw_init(void)