From 192bd796c27ac6eb9443af4b7e027294316f7c5b Mon Sep 17 00:00:00 2001 From: Sidath Senanayake Date: Wed, 9 Nov 2016 14:14:45 +0100 Subject: Mali Bifrost DDK r1p0 KMD Provenance: 9f8289b33 (collaborate/EAC/b_r1p0) BX304L01B-BU-00000-r1p0-01rel0 BX304L06A-BU-00000-r1p0-01rel0 BX304X07X-BU-00000-r1p0-01bet0 Signed-off-by: Sidath Senanayake Change-Id: I1559e84ef1f3853e66978a6c12307e766b31e30f --- mali_kbase/backend/gpu/mali_kbase_devfreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mali_kbase/backend/gpu/mali_kbase_devfreq.c') diff --git a/mali_kbase/backend/gpu/mali_kbase_devfreq.c b/mali_kbase/backend/gpu/mali_kbase_devfreq.c index 531c432..032ca4b 100644 --- a/mali_kbase/backend/gpu/mali_kbase_devfreq.c +++ b/mali_kbase/backend/gpu/mali_kbase_devfreq.c @@ -1,6 +1,6 @@ /* * - * (C) COPYRIGHT 2014-2015 ARM Limited. All rights reserved. + * (C) COPYRIGHT 2014-2016 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software @@ -133,9 +133,11 @@ kbase_devfreq_status(struct device *dev, struct devfreq_dev_status *stat) stat->private_data = NULL; #ifdef CONFIG_DEVFREQ_THERMAL +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) if (kbdev->devfreq_cooling) memcpy(&kbdev->devfreq_cooling->last_status, stat, sizeof(*stat)); +#endif #endif return 0; -- cgit v1.2.3