arm/giv3: add g_ prefix to some global variables
Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
3d275bd4a2
commit
6098747c4f
@ -67,7 +67,7 @@
|
||||
|
||||
/* Redistributor base addresses for each core */
|
||||
|
||||
static unsigned long gic_rdists[CONFIG_SMP_NCPUS];
|
||||
static unsigned long g_gic_rdists[CONFIG_SMP_NCPUS];
|
||||
|
||||
/***************************************************************************
|
||||
* Private Functions
|
||||
@ -101,7 +101,7 @@ static inline int sys_test_bit(unsigned long addr, unsigned int bit)
|
||||
|
||||
static inline unsigned long gic_get_rdist(void)
|
||||
{
|
||||
return gic_rdists[this_cpu()];
|
||||
return g_gic_rdists[this_cpu()];
|
||||
}
|
||||
|
||||
static inline uint32_t read_gicd_wait_rwp(void)
|
||||
@ -801,9 +801,9 @@ static void arm_gic_init(void)
|
||||
uint8_t cpu;
|
||||
int err;
|
||||
|
||||
cpu = this_cpu();
|
||||
gic_rdists[cpu] = CONFIG_GICR_BASE +
|
||||
up_cpu_index() * CONFIG_GICR_OFFSET;
|
||||
cpu = this_cpu();
|
||||
g_gic_rdists[cpu] = CONFIG_GICR_BASE +
|
||||
up_cpu_index() * CONFIG_GICR_OFFSET;
|
||||
|
||||
err = gic_validate_redist_version();
|
||||
if (err)
|
||||
|
@ -78,7 +78,7 @@
|
||||
|
||||
/* Redistributor base addresses for each core */
|
||||
|
||||
static unsigned long gic_rdists[CONFIG_SMP_NCPUS];
|
||||
static unsigned long g_gic_rdists[CONFIG_SMP_NCPUS];
|
||||
|
||||
/***************************************************************************
|
||||
* Private Functions
|
||||
@ -112,7 +112,7 @@ static inline int sys_test_bit(unsigned long addr, unsigned int bit)
|
||||
|
||||
static inline unsigned long gic_get_rdist(void)
|
||||
{
|
||||
return gic_rdists[this_cpu()];
|
||||
return g_gic_rdists[this_cpu()];
|
||||
}
|
||||
|
||||
static inline uint32_t read_gicd_wait_rwp(void)
|
||||
@ -940,9 +940,9 @@ static void arm64_gic_init(void)
|
||||
uint8_t cpu;
|
||||
int err;
|
||||
|
||||
cpu = this_cpu();
|
||||
gic_rdists[cpu] = CONFIG_GICR_BASE +
|
||||
up_cpu_index() * CONFIG_GICR_OFFSET;
|
||||
cpu = this_cpu();
|
||||
g_gic_rdists[cpu] = CONFIG_GICR_BASE +
|
||||
up_cpu_index() * CONFIG_GICR_OFFSET;
|
||||
|
||||
err = gic_validate_redist_version();
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user