Searched refs:loongson_sysconf (Results 1 – 19 of 19) sorted by relevance
29 struct loongson_system_configuration loongson_sysconf; variable87 loongson_sysconf.cputype = ecpu->cputype; in prom_lefi_init_env()91 loongson_sysconf.cores_per_node = 4; in prom_lefi_init_env()92 loongson_sysconf.cores_per_package = 4; in prom_lefi_init_env()109 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_lefi_init_env()113 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_lefi_init_env()114 loongson_sysconf.cores_per_package = 8; in prom_lefi_init_env()131 loongson_sysconf.workarounds = WORKAROUND_CPUHOTPLUG; in prom_lefi_init_env()134 loongson_sysconf.cores_per_node = 1; in prom_lefi_init_env()135 loongson_sysconf.cores_per_package = 1; in prom_lefi_init_env()[all …]
44 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()50 loongson_sysconf.nr_cpus, num_online_nodes()); in cpu_node_probe()55 int package_row = row * loongson_sysconf.cores_per_node / in compute_node_distance()56 loongson_sysconf.cores_per_package; in compute_node_distance()57 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()58 loongson_sysconf.cores_per_package; in compute_node_distance()145 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()154 for (cpu = 0; cpu < loongson_sysconf.nr_cpus; cpu++) { in prom_meminit()155 node = cpu / loongson_sysconf.cores_per_node; in prom_meminit()159 if (loongson_sysconf.reserved_cpus_mask & (1<<cpu)) in prom_meminit()
56 if (loongson_sysconf.fw_interface != LOONGSON_LEFI) in szmem()105 loongson_sysconf.fw_interface = LOONGSON_DTB; in prom_init()108 loongson_sysconf.fw_interface = LOONGSON_LEFI; in prom_init()115 if (loongson_sysconf.early_config) in prom_init()116 loongson_sysconf.early_config(); in prom_init()
13 if (!loongson_sysconf.vgabios_addr) in pci_fixup_video()20 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_video()
445 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary()447 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()488 while (i < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()489 if (loongson_sysconf.reserved_cpus_mask & (1<<i)) { in loongson3_smp_setup()504 while (num < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()518 cpu_logical_map(0) % loongson_sysconf.cores_per_package); in loongson3_smp_setup()519 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()835 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_disable_clock()849 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_enable_clock()
27 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in loongson_restart()38 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in loongson_poweroff()
22 if (loongson_sysconf.fw_interface == LOONGSON_DTB) { in plat_time_init()
12 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
16 struct loongson_system_configuration loongson_sysconf; variable17 EXPORT_SYMBOL(loongson_sysconf);39 if (loongson_sysconf.cpuname && !strncmp(loongson_sysconf.cpuname, "Loongson", 8)) { in init_cpu_fullname()41 __cpu_full_name[cpu] = loongson_sysconf.cpuname; in init_cpu_fullname()
72 if (cpuid == loongson_sysconf.boot_cpu_id) in set_processor_mask()118 set_bit(core, &(loongson_sysconf.cores_io_master)); in acpi_parse_eio_master()139 loongson_sysconf.nr_cpus = num_processors; in acpi_process_madt()158 loongson_sysconf.boot_cpu_id = read_csr_cpuid(); in acpi_boot_table_init()
185 cpu_data[0].core = cpu_logical_map(0) % loongson_sysconf.cores_per_package; in loongson_smp_setup()186 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson_smp_setup()189 pr_info("Detected %i available CPU(s)\n", loongson_sysconf.nr_cpus); in loongson_smp_setup()196 for (i = 0; i < loongson_sysconf.nr_cpus; i++) { in loongson_prepare_cpus()240 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package; in loongson_init_secondary()242 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson_init_secondary()
117 loongson_sysconf.cpuname = (void *)dmi_string_parse(dm, dmi_data[16]); in parse_cpu_table()118 loongson_sysconf.cores_per_package = *(dmi_data + SMBIOS_CORE_PACKAGE_OFFSET); in parse_cpu_table()
426 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()427 loongson_sysconf.cores_per_node = cpumask_weight(&phys_cpus_on_node[0]); in init_numa_memory()
41 extern struct loongson_system_configuration loongson_sysconf;45 return test_bit(cpu, &loongson_sysconf.cores_io_master); in io_master()
142 nr_packages = loongson_sysconf.nr_cpus / in loongson_hwmon_init()143 loongson_sysconf.cores_per_package; in loongson_hwmon_init()
202 extern struct loongson_system_configuration loongson_sysconf;
109 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base
50 nr_nodes = cache_private(cdesc) ? 1 : loongson_sysconf.nr_nodes; in flush_cache_leaf()
259 priv->map_cache[i] |= BIT(loongson_sysconf.boot_cpu_id); in liointc_init()