diff options
author | Steven J. Hill <sjhill@mips.com> | 2012-08-31 17:13:07 -0400 |
---|---|---|
committer | Steven J. Hill <sjhill@mips.com> | 2012-09-13 16:43:48 -0400 |
commit | 2299c49d601c20ba502f5cc7b2f72a0048f485db (patch) | |
tree | 164646cd242ec38a6494bb8436f152db398f0b7d /arch/mips/include | |
parent | 0b271f5600b5ae56d331a18da830e33f9fb0acdc (diff) |
MIPS: Code clean-ups for the GIC.
Fix whitespace, beautify the code and remove debug statements.
Signed-off-by: Steven J. Hill <sjhill@mips.com>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/gic.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/mips/include/asm/gic.h b/arch/mips/include/asm/gic.h index 77207fa459a5..37620db588be 100644 --- a/arch/mips/include/asm/gic.h +++ b/arch/mips/include/asm/gic.h | |||
@@ -33,13 +33,13 @@ | |||
33 | REG32(_gic_base + segment##_##SECTION_OFS + offset) | 33 | REG32(_gic_base + segment##_##SECTION_OFS + offset) |
34 | 34 | ||
35 | #define GIC_ABS_REG(segment, offset) \ | 35 | #define GIC_ABS_REG(segment, offset) \ |
36 | (_gic_base + segment##_##SECTION_OFS + offset##_##OFS) | 36 | (_gic_base + segment##_##SECTION_OFS + offset##_##OFS) |
37 | #define GIC_REG_ABS_ADDR(segment, offset) \ | 37 | #define GIC_REG_ABS_ADDR(segment, offset) \ |
38 | (_gic_base + segment##_##SECTION_OFS + offset) | 38 | (_gic_base + segment##_##SECTION_OFS + offset) |
39 | 39 | ||
40 | #ifdef GICISBYTELITTLEENDIAN | 40 | #ifdef GICISBYTELITTLEENDIAN |
41 | #define GICREAD(reg, data) (data) = (reg), (data) = le32_to_cpu(data) | 41 | #define GICREAD(reg, data) ((data) = (reg), (data) = le32_to_cpu(data)) |
42 | #define GICWRITE(reg, data) (reg) = cpu_to_le32(data) | 42 | #define GICWRITE(reg, data) ((reg) = cpu_to_le32(data)) |
43 | #define GICBIS(reg, bits) \ | 43 | #define GICBIS(reg, bits) \ |
44 | ({unsigned int data; \ | 44 | ({unsigned int data; \ |
45 | GICREAD(reg, data); \ | 45 | GICREAD(reg, data); \ |
@@ -48,9 +48,9 @@ | |||
48 | }) | 48 | }) |
49 | 49 | ||
50 | #else | 50 | #else |
51 | #define GICREAD(reg, data) (data) = (reg) | 51 | #define GICREAD(reg, data) ((data) = (reg)) |
52 | #define GICWRITE(reg, data) (reg) = (data) | 52 | #define GICWRITE(reg, data) ((reg) = (data)) |
53 | #define GICBIS(reg, bits) (reg) |= (bits) | 53 | #define GICBIS(reg, bits) ((reg) |= (bits)) |
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | 56 | ||
@@ -304,15 +304,15 @@ | |||
304 | GIC_SH_MAP_TO_VPE_REG_BIT(vpe)) | 304 | GIC_SH_MAP_TO_VPE_REG_BIT(vpe)) |
305 | 305 | ||
306 | struct gic_pcpu_mask { | 306 | struct gic_pcpu_mask { |
307 | DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS); | 307 | DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS); |
308 | }; | 308 | }; |
309 | 309 | ||
310 | struct gic_pending_regs { | 310 | struct gic_pending_regs { |
311 | DECLARE_BITMAP(pending, GIC_NUM_INTRS); | 311 | DECLARE_BITMAP(pending, GIC_NUM_INTRS); |
312 | }; | 312 | }; |
313 | 313 | ||
314 | struct gic_intrmask_regs { | 314 | struct gic_intrmask_regs { |
315 | DECLARE_BITMAP(intrmask, GIC_NUM_INTRS); | 315 | DECLARE_BITMAP(intrmask, GIC_NUM_INTRS); |
316 | }; | 316 | }; |
317 | 317 | ||
318 | /* | 318 | /* |