mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
ANDROID: softirq: Refine RT defer softirq
Do not defer softirq processing when RT throttling. Otherwise softirq process would be deferred indefinitely. Bug: 234597245 Test: Trigger RT Throttling and check RT & softirq behavior Fixes: "ANDROID: softirq: defer softirq processing to ksoftirqd if CPU is busy with RT" Signed-off-by: Luke Chang <lukechang@google.com> Change-Id: I76df270c39ce8c0633b914c3354a27d6e559ec94
This commit is contained in:
@@ -343,6 +343,7 @@ bool cpupri_check_rt(void)
|
||||
{
|
||||
int cpu = raw_smp_processor_id();
|
||||
|
||||
return cpu_rq(cpu)->rd->cpupri.cpu_to_pri[cpu] > CPUPRI_NORMAL;
|
||||
return (cpu_rq(cpu)->rd->cpupri.cpu_to_pri[cpu] > CPUPRI_NORMAL) &&
|
||||
(cpu_rq(cpu)->rt.rt_throttled == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user