Files
kernel_google_wahoo/kernel
Pavankumar Kondeti 516b19042c sched/cputime: fix a deadlock on 32bit systems
cpu_hardirq_time and cpu_softirq_time are protected with
seqlock on 32bit systems. There is a potential deadlock
with this seqlock and rq->lock.

CPU 1                             CPU0
==========================        ========================
--> acquire CPU0 rq->lock         --> __irq_enter()
----> task enqueue/dequeue        ----> irqtime_account_irq()
------> update_rq_clock()         ------> irq_time_write_begin()
--------> irq_time_read()         --------> sched_account_irqtime()
(waiting for the seqlock          (waiting for the CPU0 rq->lock)
held in irq_time_write_begin()

Fix this issue by dropping the seqlock before calling
sched_account_irqtime()

Change-Id: I29a33876e372f99435a57cc11eada9c8cfd59a3f
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-03-23 20:02:39 -07:00
..
2015-06-30 19:44:57 -07:00
2015-12-14 09:45:06 +01:00
2015-11-04 08:23:51 -05:00
2016-03-23 20:00:27 -07:00
2015-11-23 09:44:58 +01:00
2016-02-16 13:54:02 -08:00
2015-11-05 19:34:48 -08:00