diff options
author | Jiang Liu <liuj97@gmail.com> | 2012-03-30 23:11:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-13 08:14:06 -0700 |
commit | 8132f98d51bd6a11e9d053b84c17c1af52e371f2 (patch) | |
tree | dd7008fa61060652a2b4bccd058fa0b1e76c746c /fs | |
parent | e601f243f04282ff17b173fb7c15e6d1c6e7252f (diff) | |
download | kernel_samsung_crespo-8132f98d51bd6a11e9d053b84c17c1af52e371f2.zip kernel_samsung_crespo-8132f98d51bd6a11e9d053b84c17c1af52e371f2.tar.gz kernel_samsung_crespo-8132f98d51bd6a11e9d053b84c17c1af52e371f2.tar.bz2 |
genirq: Adjust irq thread affinity on IRQ_SET_MASK_OK_NOCOPY return value
commit f5cb92ac82d06cb583c1f66666314c5c0a4d7913 upstream.
irq_move_masked_irq() checks the return code of
chip->irq_set_affinity() only for 0, but IRQ_SET_MASK_OK_NOCOPY is
also a valid return code, which is there to avoid a redundant copy of
the cpumask. But in case of IRQ_SET_MASK_OK_NOCOPY we not only avoid
the redundant copy, we also fail to adjust the thread affinity of an
eventually threaded interrupt handler.
Handle IRQ_SET_MASK_OK (==0) and IRQ_SET_MASK_OK_NOCOPY(==1) return
values correctly by checking the valid return values seperately.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Keping Chen <chenkeping@huawei.com>
Link: http://lkml.kernel.org/r/1333120296-13563-2-git-send-email-jiang.liu@huawei.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions