diff options
author | Matt Redfearn <[email protected]> | 2018-02-26 17:02:42 +0000 |
---|---|---|
committer | James Hogan <[email protected]> | 2018-03-09 11:22:45 +0000 |
commit | 1690905240fd45cc04e873312df8574631c9f595 (patch) | |
tree | 333b38ee973fda189ce5578a39ead3679ee098f7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 997e93d4df165202f2ee36a48f7aca172ff8b48a (diff) |
MIPS: Introduce isa-rev.h to define MIPS_ISA_REV
There are multiple instances in the kernel where we need to include or
exclude particular instructions based on the ISA revision of the target
processor. For MIPS32 / MIPS64, the compiler exports a __mips_isa_rev
define. However, when targeting MIPS I - V, this define is absent. This
leads to each use of __mips_isa_rev having to check that it is defined
first. To simplify this, introduce the isa-rev.h header which always
exports MIPS_ISA_REV. The name is changed so as to avoid confusion with
the compiler builtin and to avoid accidentally using the builtin.
MIPS_ISA_REV is defined to the compilers builtin if provided, or 0,
which satisfies all current usages.
Suggested-by: Paul Burton <[email protected]>
Signed-off-by: Matt Redfearn <[email protected]>
Reviewed-by: Maciej W. Rozycki <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/18676/
Signed-off-by: James Hogan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions