summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/kernel/env.c
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2022-07-20 09:21:52 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2022-07-29 12:22:32 +0200
commit3a3a4f7a65e3ff7ad395afc8c41ac317c8667546 (patch)
treed5e23f0efe876d35a07875d4ed9704da3d3b0871 /arch/loongarch/kernel/env.c
parentLoongArch: Remove clock setting during cpu hotplug stage (diff)
downloadlinux-3a3a4f7a65e3ff7ad395afc8c41ac317c8667546.tar.xz
linux-3a3a4f7a65e3ff7ad395afc8c41ac317c8667546.zip
LoongArch: Remove unused variables
There are some variables never used or referenced, this patch removes these varaibles and make the code cleaner. Reviewed-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to '')
-rw-r--r--arch/loongarch/kernel/env.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/loongarch/kernel/env.c b/arch/loongarch/kernel/env.c
index 467946ecf451..82b478a5c665 100644
--- a/arch/loongarch/kernel/env.c
+++ b/arch/loongarch/kernel/env.c
@@ -17,21 +17,6 @@ u64 efi_system_table;
struct loongson_system_configuration loongson_sysconf;
EXPORT_SYMBOL(loongson_sysconf);
-u64 loongson_chipcfg[MAX_PACKAGES];
-u64 loongson_chiptemp[MAX_PACKAGES];
-u64 loongson_freqctrl[MAX_PACKAGES];
-unsigned long long smp_group[MAX_PACKAGES];
-
-static void __init register_addrs_set(u64 *registers, const u64 addr, int num)
-{
- u64 i;
-
- for (i = 0; i < num; i++) {
- *registers = (i << 44) | addr;
- registers++;
- }
-}
-
void __init init_environ(void)
{
int efi_boot = fw_arg0;
@@ -50,11 +35,6 @@ void __init init_environ(void)
efi_memmap_init_early(&data);
memblock_reserve(data.phys_map & PAGE_MASK,
PAGE_ALIGN(data.size + (data.phys_map & ~PAGE_MASK)));
-
- register_addrs_set(smp_group, TO_UNCACHE(0x1fe01000), 16);
- register_addrs_set(loongson_chipcfg, TO_UNCACHE(0x1fe00180), 16);
- register_addrs_set(loongson_chiptemp, TO_UNCACHE(0x1fe0019c), 16);
- register_addrs_set(loongson_freqctrl, TO_UNCACHE(0x1fe001d0), 16);
}
static int __init init_cpu_fullname(void)