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

Commit 324ef8b5 authored by Lynus Vaz's avatar Lynus Vaz
Browse files

msm: kgsl: Correctly change the pagefault policy via sysfs



The pagefault halt policy was not actually taking effect when set
from the sysfs file. Pass in the new policy where required.

Change-Id: I09d557ba3554cb413520d9ff97ac8e68b9b1fd7e
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 07c7432a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/* Copyright (c) 2002,2007-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2002,2007-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1472,8 +1472,7 @@ static ssize_t _ft_pagefault_policy_store(struct device *dev,
			KGSL_FT_PAGEFAULT_GPUHALT_ENABLE |
			KGSL_FT_PAGEFAULT_LOG_ONE_PER_PAGE |
			KGSL_FT_PAGEFAULT_LOG_ONE_PER_INT);
	ret = kgsl_mmu_set_pagefault_policy(&(adreno_dev->dev.mmu),
			adreno_dev->ft_pf_policy);
	ret = kgsl_mmu_set_pagefault_policy(&(adreno_dev->dev.mmu), policy);
	if (!ret)
		adreno_dev->ft_pf_policy = policy;