aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-10-04 05:16:32 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:27 -0400
commitdd159eeca971d594fa30176733b66d37acda82a3 (patch)
treee972734436cb13a2d8a452779882f001162fe6ae /drivers
parent7bd007e480672c99d8656c7b7b12ef0549432c37 (diff)
[PATCH] genirq: msi: make the msi boolean tests return either 0 or 1
This allows the output of the msi tests to be stored directly in a bit field. If you don't do this a value greater than one will be truncated and become 0. Changing true to false with bizare consequences. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Rajesh Shah <rajesh.shah@intel.com> Cc: Andi Kleen <ak@muc.de> Cc: "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/msi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/msi.h b/drivers/pci/msi.h
index 56951c39d3a3..9b31d4cbbce4 100644
--- a/drivers/pci/msi.h
+++ b/drivers/pci/msi.h
@@ -110,8 +110,8 @@ extern int pci_vector_resources(int last, int nr_released);
110 (1 << ((control & PCI_MSI_FLAGS_QMASK) >> 1)) 110 (1 << ((control & PCI_MSI_FLAGS_QMASK) >> 1))
111#define multi_msi_enable(control, num) \ 111#define multi_msi_enable(control, num) \
112 control |= (((num >> 1) << 4) & PCI_MSI_FLAGS_QSIZE); 112 control |= (((num >> 1) << 4) & PCI_MSI_FLAGS_QSIZE);
113#define is_64bit_address(control) (control & PCI_MSI_FLAGS_64BIT) 113#define is_64bit_address(control) (!!(control & PCI_MSI_FLAGS_64BIT))
114#define is_mask_bit_support(control) (control & PCI_MSI_FLAGS_MASKBIT) 114#define is_mask_bit_support(control) (!!(control & PCI_MSI_FLAGS_MASKBIT))
115#define msi_enable(control, num) multi_msi_enable(control, num); \ 115#define msi_enable(control, num) multi_msi_enable(control, num); \
116 control |= PCI_MSI_FLAGS_ENABLE 116 control |= PCI_MSI_FLAGS_ENABLE
117 117