linux/arch/mips/netlogic/common
Paul Burton f875a832d2 MIPS: Abstract CPU core & VP(E) ID access through accessor functions
We currently have fields in struct cpuinfo_mips for the core & VP(E) ID
of a particular CPU, and various pieces of code directly access those
fields. This patch abstracts such access by introducing accessor
functions cpu_core(), cpu_set_core(), cpu_vpe_id() & cpu_set_vpe_id()
and having code that needs to access these values call those functions
rather than directly accessing the struct cpuinfo_mips fields. This
prepares us for changes to the way in which those values are stored in
later patches.

The cpu_vpe_id() function is introduced even though we already had a
cpu_vpe_id() macro for a couple of reasons:

  1) It's more consistent with the core, and future cluster, accessors.

  2) It ensures a sensible return type without explicit casts.

  3) It's generally preferable to use functions rather than macros.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17009/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-08-30 00:57:26 +02:00
..
earlycons.c MIPS: Netlogic: XLP9XX UART offset 2014-01-24 22:39:48 +01:00
irq.c MIPS: Netlogic: Exclude netlogic,xlp-pic code from XLR builds 2017-01-03 16:34:38 +01:00
Makefile MIPS: Netlogic: Initialization when !CONFIG_SMP 2013-06-13 17:46:42 +02:00
nlm-dma.c treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00
reset.S MIPS: Netlogic: Fix CP0_EBASE redefinition warnings 2016-05-09 12:00:05 +02:00
smp.c MIPS: Abstract CPU core & VP(E) ID access through accessor functions 2017-08-30 00:57:26 +02:00
smpboot.S MIPS: Netlogic: Fix assembler warning from smpboot.S 2017-01-03 16:48:39 +01:00
time.c clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00