linux/arch/blackfin/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
..
cplb-mpu [Blackfin] arch: error out if ANOMALY_05000263 applies while enabling the MPU 2008-02-02 12:28:23 +08:00
cplb-nompu [Blackfin] arch: Fix bug - kernel build with Debug option enabled fails to boot up 2008-01-22 19:23:50 +08:00
asm-offsets.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
bfin_dma_5xx.c [Blackfin] arch: Enable UART2 and UART3 for bf548 2008-02-02 16:31:00 +08:00
bfin_gpio.c [Blackfin] arch: hook up set_irq_wake in Blackfin's irq code 2008-02-09 04:12:37 +08:00
bfin_ksyms.c Blackfin arch: rename _return_from_exception to _bfin_return_from_exception and export it 2007-11-21 15:53:49 +08:00
dma-mapping.c blackfin: fix sg fallout 2007-10-24 14:09:25 +02:00
dualcore_test.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
early_printk.c [Blackfin] arch: Spelling fixes 2007-12-24 20:03:51 +08:00
entry.S Blackfin arch: Fix random crash issue found by Michael. 2007-10-29 18:14:15 +08:00
fixed_code.S Blackfin arch: ensure that speculative loads of bad pointers don't cause us to do bad things. 2007-10-29 18:23:28 +08:00
flat.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
gptimers.c Blackfin arch: add support for checking/clearing overruns in generic purpose Timer API 2007-10-29 18:02:09 +08:00
init_task.c [Blackfin] arch: move the init sections to the end of memory 2008-02-02 15:53:17 +08:00
irqchip.c Blackfin arch: allow people to select the feature that is unavailable to the kernel 2007-08-05 17:03:59 +08:00
kgdb.c Blackfin arch: kgdb specific code 2007-06-29 16:35:17 +08:00
Makefile [Blackfin] arch: move all code related to CPLB handling into a new subdirectory under kernel/ 2008-01-11 16:58:44 +08:00
module.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
process.c aout: remove unnecessary inclusions of {asm, linux}/a.out.h 2008-02-08 09:22:30 -08:00
ptrace.c Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
reboot.c [Blackfin] arch: Add proper SW System Reset delay sequence 2008-01-22 18:38:02 +08:00
setup.c [Blackfin] arch: simpler header and update dates 2008-02-02 15:55:37 +08:00
signal.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
sys_bfin.c Blackfin arch: after removing fs.h from mm.h, fix the broken on Blackfin arch 2007-08-11 15:47:39 -07:00
time.c xtime_lock vs update_process_times 2008-02-13 13:29:25 -08:00
traps.c [Blackfin] arch: fix typo in printk message 2008-02-02 15:45:27 +08:00
vmlinux.lds.S [Blackfin] arch: move the init sections to the end of memory 2008-02-02 15:53:17 +08:00