]> git.baikalelectronics.ru Git - kernel.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)
commit77bf44ce2886afdab7ff7ae4f6bf3e51430dd4c9
tree8eea2c2db4541a05114dd9fb61e782a0e5d13458
parent51ca3452ccd1358baf8f77979ed85173af346559
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