diff options
author | Murali Karicheri <m-karicheri2@ti.com> | 2012-12-21 20:13:26 (GMT) |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-02-05 17:12:26 (GMT) |
commit | 32310aaf5c410dd3dc701556cc9bbeff0847c7c9 (patch) | |
tree | 6f6a84b3dc6a244e9d4bf5bd0a22702ba55b2903 /lib/cmdline.c | |
parent | 41ab724aac00cae42e649496c2567e9ef45dd753 (diff) | |
download | linux-32310aaf5c410dd3dc701556cc9bbeff0847c7c9.tar.xz |
spi/davinci: use request_threaded_irq() to fix deadlock
With RT pre-empt patch applied to Linux kernel, the irq handler will be
force converted to an irq thread. spi driver can get back to back messages
from the slave device. In such cases, IRQ thread doesn't get a chance to
run to read the slave data. Hence the irq handler must be run in hard irq
context to read/write data from slave device. Otherwise, the kernel goes
into a deadlock. This patch fixes this issue when PREEMPT_RT_FULL is
enabled in the kernel. A dummy thread function is provided to satisfy the
request_threaded_irq() API. Passing a NULL for function also causes the
irq handler to be executed in the thread context.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'lib/cmdline.c')
0 files changed, 0 insertions, 0 deletions