]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add cpu_vpe_id macro
authorPaul Burton <paul.burton@imgtec.com>
Mon, 24 Mar 2014 10:19:24 +0000 (10:19 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:00:05 +0000 (23:00 +0100)
commit05d76e6387e4110b1207346814b079191dcfe587
tree59b3b71d57b93d251f3ea84421a69e6a287213dd
parent014eaeb3baea2d77bbd8f06235691ef160f1bb51
MIPS: Add cpu_vpe_id macro

The vpe_id field of struct cpuinfo_mips is only present when one of
CONFIG_MIPS_MT_{SMP,SMTC} is enabled. That means that any code accessing
which may compile without MT is currently forced to use an #ifdef.
Instead this patch provides an accessor macro, #ifdef'd appropriately
to prevent further #ifdef's elsewhere.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6646/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-info.h