acrn-kernel/arch/frv/kernel
Peter Zijlstra aa02cd2d9b xtime_lock vs update_process_times
Commit d3d74453c3 ("hrtimer: fixup the
HRTIMER_CB_IRQSAFE_NO_SOFTIRQ fallback") broke several archs, and since
only Russell bothered to merge the fix, and Greg to ACK his arch, I'm
sending this for merger.

I have confirmation that the Alpha bit results in a booting kernel.
That leaves: blackfin, frv, sh and sparc untested.

The deadlock in question was found by Russell:

  IRQ handle
    -> timer_tick() - xtime seqlock held for write
      -> update_process_times()
        -> run_local_timers()
          -> hrtimer_run_queues()
            -> hrtimer_get_softirq_time() - tries to get a read lock

Now, Thomas assures me the fix is trivial, only do_timer() needs to be
done under the xtime_lock, and update_process_times() can savely be
removed from under it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Greg Ungerer <gerg@uclinux.org>
CC: Richard Henderson <rth@twiddle.net>
CC: Bryan Wu <bryan.wu@analog.com>
CC: David Howells <dhowells@redhat.com>
CC: Paul Mundt <lethal@linux-sh.org>
CC: William Irwin <wli@holomorphy.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-13 13:29:25 -08:00
..
Makefile
asm-offsets.c
break.S FRV: arrange things such that BRA can reach from the trap table 2007-11-29 09:24:54 -08:00
cmode.S
debug-stub.c
dma.c
entry-table.S
entry.S timerfd: fix remaining architectures 2008-02-05 14:37:15 -08:00
frv_ksyms.c
futex.c
gdb-io.c
gdb-io.h
gdb-stub.c Remove references to "make dep" 2008-01-28 23:22:13 +01:00
head-mmu-fr451.S
head-uc-fr401.S
head-uc-fr451.S
head-uc-fr555.S
head.S
head.inc
init_task.c
irq-mb93091.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
irq-mb93093.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
irq-mb93493.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
irq.c spelling fixes: arch/frv/ 2007-10-20 01:09:42 +02:00
kernel_execve.S
kernel_thread.S
local.h
module.c
pm-mb93093.c
pm.c
process.c
ptrace.c
semaphore.c spelling fixes: arch/frv/ 2007-10-20 01:09:42 +02:00
setup.c procfs: constify function pointer tables 2008-02-08 09:22:38 -08:00
signal.c
sleep.S
switch_to.S
sys_frv.c
sysctl.c
time.c xtime_lock vs update_process_times 2008-02-13 13:29:25 -08:00
traps.c
uaccess.c
vmlinux.lds.S FRV: Fix up parse error in linker script 2008-02-13 08:26:01 -08:00