clk: at91: remove IRQ handling and use polling
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 16 Sep 2015 21:47:39 +0000 (23:47 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 17 Feb 2016 16:52:59 +0000 (17:52 +0100)
commit99a81706526fb167029a940ef1f7bfbe882abd3e
treef35afa9e90b6a0825bf3f527160482fda286e91c
parent1bdf02326b71eae7e9b4b335b881856aaf9d1af6
clk: at91: remove IRQ handling and use polling

The AT91 clock drivers make use of IRQs to avoid polling when waiting for
some clocks to be enabled. Unfortunately, this leads to a crash when those
IRQs are threaded (which happens when using preempt-rt) because they are
registered before thread creation is possible.

Use polling on those clocks instead to avoid the problem.

Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/clk/at91/clk-main.c
drivers/clk/at91/clk-master.c
drivers/clk/at91/clk-pll.c
drivers/clk/at91/clk-system.c
drivers/clk/at91/clk-utmi.c
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h