aw_mp.c: use argument name in macros

Rather than relying on 'cluster' existing in the context they're used in,
use the argument name.

Differential Revision:	https://reviews.freebsd.org/D12931
This commit is contained in:
Kyle Evans 2017-12-06 14:53:53 +00:00
parent 6f80848e09
commit c0a8dfea7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326623

View File

@ -83,13 +83,13 @@ __FBSDID("$FreeBSD$");
#define CPUCFG_DBGCTL0 0x1e0
#define CPUCFG_DBGCTL1 0x1e4
#define CPUS_CL_RST(cl) (0x30 + (cluster) * 0x4)
#define CPUX_CL_CTRL0(cl) (0x0 + (cluster) * 0x10)
#define CPUX_CL_CTRL1(cl) (0x4 + (cluster) * 0x10)
#define CPUX_CL_CPU_STATUS(cl) (0x30 + (cluster) * 0x4)
#define CPUX_CL_RST(cl) (0x80 + (cluster) * 0x4)
#define PRCM_CL_PWROFF(cl) (0x100 + (cluster) * 0x4)
#define PRCM_CL_PWR_CLAMP(cl, cpu) (0x140 + (cluster) * 0x4 + (cpu) * 0x4)
#define CPUS_CL_RST(cl) (0x30 + (cl) * 0x4)
#define CPUX_CL_CTRL0(cl) (0x0 + (cl) * 0x10)
#define CPUX_CL_CTRL1(cl) (0x4 + (cl) * 0x10)
#define CPUX_CL_CPU_STATUS(cl) (0x30 + (cl) * 0x4)
#define CPUX_CL_RST(cl) (0x80 + (cl) * 0x4)
#define PRCM_CL_PWROFF(cl) (0x100 + (cl) * 0x4)
#define PRCM_CL_PWR_CLAMP(cl, cpu) (0x140 + (cl) * 0x4 + (cpu) * 0x4)
void
aw_mp_setmaxid(platform_t plat)