Skip to content

Commit cd2b6c2

Browse files
committed
ARC: eliminate struct cpuinfo_arc #3: don't export
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 227d3b3 commit cd2b6c2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

arch/arc/include/asm/arcregs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,6 @@ struct cpuinfo_arc {
359359
struct bcr_mpy extn_mpy;
360360
};
361361

362-
extern struct cpuinfo_arc cpuinfo_arc700[];
363-
364362
static inline int is_isa_arcv3(void)
365363
{
366364
return IS_ENABLED(CONFIG_ISA_ARCV3);

arch/arc/kernel/mcip.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ static void mcip_probe_n_setup(void)
165165
IS_AVAIL1(mp.idu, "IDU "),
166166
IS_AVAIL1(mp.dbg, "DEBUG "),
167167
IS_AVAIL1(mp.gfrc, "GFRC"));
168-
169-
cpuinfo_arc700[0].extn.gfrc = mp.gfrc;
170168
}
171169

172170
struct plat_smp_ops plat_smp_ops = {

arch/arc/plat-hsdk/platform.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,24 @@ int arc_hsdk_axi_dmac_coherent __section(.data) = 0;
1919

2020
static void __init hsdk_init_per_cpu(unsigned int cpu)
2121
{
22+
struct bcr_iccm_arcv2 iccm;
23+
struct bcr_dccm_arcv2 dccm;
24+
25+
READ_BCR(ARC_REG_ICCM_BUILD, iccm);
26+
READ_BCR(ARC_REG_DCCM_BUILD, dccm);
27+
2228
/*
2329
* By default ICCM is mapped to 0x7z while this area is used for
2430
* kernel virtual mappings, so move it to currently unused area.
2531
*/
26-
if (cpuinfo_arc700[cpu].iccm.sz)
32+
if (iccm.ver)
2733
write_aux_reg(ARC_REG_AUX_ICCM, ARC_CCM_UNUSED_ADDR);
2834

2935
/*
3036
* By default DCCM is mapped to 0x8z while this area is used by kernel,
3137
* so move it to currently unused area.
3238
*/
33-
if (cpuinfo_arc700[cpu].dccm.sz)
39+
if (dccm.ver)
3440
write_aux_reg(ARC_REG_AUX_DCCM, ARC_CCM_UNUSED_ADDR);
3541
}
3642

0 commit comments

Comments
 (0)