setup.c (473e0bc39bd5d2542e90edc622a65bd49206409d) setup.c (a5f4c561b3b19a9bc43a81da6382b0098ebbc1fb)
1/*
2 * linux/arch/arm/kernel/setup.c
3 *
4 * Copyright (C) 1995-2001 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 23 unchanged lines hidden (view full) ---

32#include <linux/compiler.h>
33#include <linux/sort.h>
34
35#include <asm/unified.h>
36#include <asm/cp15.h>
37#include <asm/cpu.h>
38#include <asm/cputype.h>
39#include <asm/elf.h>
1/*
2 * linux/arch/arm/kernel/setup.c
3 *
4 * Copyright (C) 1995-2001 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 23 unchanged lines hidden (view full) ---

32#include <linux/compiler.h>
33#include <linux/sort.h>
34
35#include <asm/unified.h>
36#include <asm/cp15.h>
37#include <asm/cpu.h>
38#include <asm/cputype.h>
39#include <asm/elf.h>
40#include <asm/fixmap.h>
40#include <asm/procinfo.h>
41#include <asm/psci.h>
42#include <asm/sections.h>
43#include <asm/setup.h>
44#include <asm/smp_plat.h>
45#include <asm/mach-types.h>
46#include <asm/cacheflush.h>
47#include <asm/cachetype.h>

--- 901 unchanged lines hidden (view full) ---

949 init_mm.end_code = (unsigned long) _etext;
950 init_mm.end_data = (unsigned long) _edata;
951 init_mm.brk = (unsigned long) _end;
952
953 /* populate cmd_line too for later use, preserving boot_command_line */
954 strlcpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE);
955 *cmdline_p = cmd_line;
956
41#include <asm/procinfo.h>
42#include <asm/psci.h>
43#include <asm/sections.h>
44#include <asm/setup.h>
45#include <asm/smp_plat.h>
46#include <asm/mach-types.h>
47#include <asm/cacheflush.h>
48#include <asm/cachetype.h>

--- 901 unchanged lines hidden (view full) ---

950 init_mm.end_code = (unsigned long) _etext;
951 init_mm.end_data = (unsigned long) _edata;
952 init_mm.brk = (unsigned long) _end;
953
954 /* populate cmd_line too for later use, preserving boot_command_line */
955 strlcpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE);
956 *cmdline_p = cmd_line;
957
958 if (IS_ENABLED(CONFIG_FIX_EARLYCON_MEM))
959 early_fixmap_init();
960
957 parse_early_param();
958
959#ifdef CONFIG_MMU
960 early_paging_init(mdesc);
961#endif
962 setup_dma_zone(mdesc);
963 sanity_check_meminfo();
964 arm_memblock_init(mdesc);

--- 45 unchanged lines hidden (view full) ---

1010
1011
1012static int __init topology_init(void)
1013{
1014 int cpu;
1015
1016 for_each_possible_cpu(cpu) {
1017 struct cpuinfo_arm *cpuinfo = &per_cpu(cpu_data, cpu);
961 parse_early_param();
962
963#ifdef CONFIG_MMU
964 early_paging_init(mdesc);
965#endif
966 setup_dma_zone(mdesc);
967 sanity_check_meminfo();
968 arm_memblock_init(mdesc);

--- 45 unchanged lines hidden (view full) ---

1014
1015
1016static int __init topology_init(void)
1017{
1018 int cpu;
1019
1020 for_each_possible_cpu(cpu) {
1021 struct cpuinfo_arm *cpuinfo = &per_cpu(cpu_data, cpu);
1018 cpuinfo->cpu.hotpluggable = 1;
1022 cpuinfo->cpu.hotpluggable = platform_can_hotplug_cpu(cpu);
1019 register_cpu(&cpuinfo->cpu, cpu);
1020 }
1021
1022 return 0;
1023}
1024subsys_initcall(topology_init);
1025
1026#ifdef CONFIG_HAVE_PROC_CPU

--- 134 unchanged lines hidden ---
1023 register_cpu(&cpuinfo->cpu, cpu);
1024 }
1025
1026 return 0;
1027}
1028subsys_initcall(topology_init);
1029
1030#ifdef CONFIG_HAVE_PROC_CPU

--- 134 unchanged lines hidden ---