From: Thomas Gleixner Date: Mon, 7 Feb 2011 15:02:20 +0000 (+0100) Subject: genirq: Do not copy affinity before set X-Git-Tag: v2.6.39-rc1~503^2~9^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b8249e759c701c4a82f99d957be651a7657bf6f;p=pandora-kernel.git genirq: Do not copy affinity before set While rumaging through arch code I found that there are a few workarounds which deal with the fact that the initial affinity setting from request_irq() copies the mask into irq_data->affinity before the chip code is called. In the normal path we unconditionally copy the mask when the chip code returns 0. Copy after the code is called and add a return code IRQ_SET_MASK_OK_NOCOPY for the chip functions, which prevents the copy. That way we see the real mask when the chip function decided to truncate it further as some arches do. IRQ_SET_MASK_OK is 0, which is the current behaviour. Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed