mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
irq: Only block userspace IRQ affinities if SBalance is enabled
If SBalance is enabled, IRQ affinity should be managed automatically. Prevent userspace from modifying it in this case, but allow changes when SBalance is disabled. Change-Id: Ibf37bf258a2358ad8b982704e8f035bd9739866b Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
0636ec7ac0
commit
485a90ebf2
@ -145,7 +145,10 @@ static ssize_t write_irq_affinity(int type, struct file *file,
|
|||||||
cpumask_var_t new_value;
|
cpumask_var_t new_value;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
#ifdef CONFIG_IRQ_SBALANCE
|
||||||
return count;
|
return count;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!irq_can_set_affinity_usr(irq) || no_irq_affinity)
|
if (!irq_can_set_affinity_usr(irq) || no_irq_affinity)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user