MIPS: cpu: Convert MIPS_CPU_* defs to (1ull << x)
authorJames Hogan <james.hogan@imgtec.com>
Wed, 13 May 2015 15:17:14 +0000 (16:17 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:01:56 +0000 (14:01 +0200)
commit0c94fa33b4de55a0dcb60519ba04a0fd49da124d
tree97374aecf740e169328c5de6806dee8bb96e548a
parentc0291f7c735941f2cf5c8d5264c2cc2402b77869
MIPS: cpu: Convert MIPS_CPU_* defs to (1ull << x)

The MIPS_CPU_* definitions have now filled the first 32-bits, and are
getting longer since they're written in hex without zero padding. Adding
my 8 extra MIPS_CPU_* definitions which I haven't upstreamed yet this is
getting increasingly ugly as the comments get shifted progressively to
the right. Its also error prone, and I've seen this cause mistakes on 3
separate occasions now, not helped by it being a conflict hotspot.

Convert all the MIPS_CPU_* definitions to the form (1ull << x). Humans
are better at incrementing than shifting.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10045/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu.h
This page took 0.024773 seconds and 5 git commands to generate.