From: Paul Burton Date: Mon, 24 Mar 2014 10:19:24 +0000 (+0000) Subject: MIPS: Add cpu_vpe_id macro X-Git-Tag: v3.15-rc1~125^2~153 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b86c2247a20f5d8b6f2b3bd0dfd2c9c8c6908b5e;p=pandora-kernel.git 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 Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6646/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed