mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
msm: kgsl: Properly set fault bit in adreno_set_gpu_fault
Replacing atomic_add by atomic_or to set the fault bit properly without overwriting other bits. Change-Id: Ie25d8e5f32d5b1f0d6e50931cc23bd32b2f01b6d Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
This commit is contained in:
parent
92efb2ac5a
commit
98340d37ad
1 changed files with 1 additions and 1 deletions
|
|
@ -1283,7 +1283,7 @@ static inline void adreno_set_gpu_fault(struct adreno_device *adreno_dev,
|
|||
int state)
|
||||
{
|
||||
/* only set the fault bit w/o overwriting other bits */
|
||||
atomic_add(state, &adreno_dev->dispatcher.fault);
|
||||
atomic_or(state, &adreno_dev->dispatcher.fault);
|
||||
|
||||
/* make sure other CPUs see the update */
|
||||
smp_wmb();
|
||||
|
|
|
|||
Loading…
Reference in a new issue