]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86, geode-mfgpt: check IRQ before using MFGPT as clocksource
authorJens Rottmann <JRottmann@LiPPERTEmbedded.de>
Mon, 4 Aug 2008 12:40:16 +0000 (14:40 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 15:12:32 +0000 (17:12 +0200)
commit0d5cdc97e242a5589e5dca23277675f4b4482490
tree8eea2c2db4541a05114dd9fb61e782a0e5d13458
parentb635acec48bcaa9183fcbf4e3955616b0d4119b5
x86, geode-mfgpt: check IRQ before using MFGPT as clocksource

Adds a simple IRQ autodetection to the AMD Geode MFGPT driver, and more
importantly, adds some checks, if IRQs can actually be received on the
chosen line.  This fixes cases where MFGPT is selected as clocksource
though not producing any ticks, so the kernel simply starves during
boot.

Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Cc: Andres Salomon <dilinger@debian.org>
Cc: linux-geode@bombadil.infradead.org
Cc: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/mfgpt_32.c
include/asm-x86/geode.h