Lines Matching refs:boot_cpu_data

34 struct system_cpuinfo_parisc boot_cpu_data __ro_after_init;
35 EXPORT_SYMBOL(boot_cpu_data);
94 if (boot_cpu_data.cpu_count > 0) { in processor_probe()
103 cpuid = boot_cpu_data.cpu_count; in processor_probe()
152 boot_cpu_data.cpu_count--; in processor_probe()
162 boot_cpu_data.cpu_count++; in processor_probe()
234 memset(&boot_cpu_data, 0, sizeof(boot_cpu_data)); in collect_boot_cpu_data()
239 boot_cpu_data.cpu_hz = 100 * PAGE0->mem_10msec; /* Hz of this PARISC */ in collect_boot_cpu_data()
242 #define p ((unsigned long *)&boot_cpu_data.pdc.model) in collect_boot_cpu_data()
243 if (pdc_model_info(&boot_cpu_data.pdc.model) == PDC_OK) { in collect_boot_cpu_data()
248 add_device_randomness(&boot_cpu_data.pdc.model, in collect_boot_cpu_data()
249 sizeof(boot_cpu_data.pdc.model)); in collect_boot_cpu_data()
253 if (pdc_model_versions(&boot_cpu_data.pdc.versions, 0) == PDC_OK) { in collect_boot_cpu_data()
255 boot_cpu_data.pdc.versions); in collect_boot_cpu_data()
257 add_device_randomness(&boot_cpu_data.pdc.versions, in collect_boot_cpu_data()
258 sizeof(boot_cpu_data.pdc.versions)); in collect_boot_cpu_data()
261 if (pdc_model_cpuid(&boot_cpu_data.pdc.cpuid) == PDC_OK) { in collect_boot_cpu_data()
263 (boot_cpu_data.pdc.cpuid >> 5) & 127, in collect_boot_cpu_data()
264 boot_cpu_data.pdc.cpuid & 31, in collect_boot_cpu_data()
265 boot_cpu_data.pdc.cpuid); in collect_boot_cpu_data()
267 add_device_randomness(&boot_cpu_data.pdc.cpuid, in collect_boot_cpu_data()
268 sizeof(boot_cpu_data.pdc.cpuid)); in collect_boot_cpu_data()
271 if (pdc_model_capabilities(&boot_cpu_data.pdc.capabilities) == PDC_OK) in collect_boot_cpu_data()
273 boot_cpu_data.pdc.capabilities); in collect_boot_cpu_data()
275 if (pdc_model_sysmodel(OS_ID_HPUX, boot_cpu_data.pdc.sys_model_name) == PDC_OK) in collect_boot_cpu_data()
277 boot_cpu_data.pdc.sys_model_name); in collect_boot_cpu_data()
284 dump_stack_set_arch_desc("%s", boot_cpu_data.pdc.sys_model_name); in collect_boot_cpu_data()
286 boot_cpu_data.hversion = boot_cpu_data.pdc.model.hversion; in collect_boot_cpu_data()
287 boot_cpu_data.sversion = boot_cpu_data.pdc.model.sversion; in collect_boot_cpu_data()
289 boot_cpu_data.cpu_type = parisc_get_cpu_type(boot_cpu_data.hversion); in collect_boot_cpu_data()
290 boot_cpu_data.cpu_name = cpu_name_version[boot_cpu_data.cpu_type][0]; in collect_boot_cpu_data()
291 boot_cpu_data.family_name = cpu_name_version[boot_cpu_data.cpu_type][1]; in collect_boot_cpu_data()
294 _parisc_requires_coherency = (boot_cpu_data.cpu_type == mako) || in collect_boot_cpu_data()
295 (boot_cpu_data.cpu_type == mako2); in collect_boot_cpu_data()
399 cpu, boot_cpu_data.family_name); in show_cpuinfo()
401 seq_printf(m, "cpu\t\t: %s\n", boot_cpu_data.cpu_name ); in show_cpuinfo()
405 boot_cpu_data.cpu_hz / 1000000, in show_cpuinfo()
406 boot_cpu_data.cpu_hz % 1000000 ); in show_cpuinfo()
417 if (boot_cpu_data.pdc.capabilities & PDC_MODEL_OS32) in show_cpuinfo()
419 if (boot_cpu_data.pdc.capabilities & PDC_MODEL_OS64) in show_cpuinfo()
421 if (boot_cpu_data.pdc.capabilities & PDC_MODEL_IOPDIR_FDC) in show_cpuinfo()
423 switch (boot_cpu_data.pdc.capabilities & PDC_MODEL_NVA_MASK) { in show_cpuinfo()
434 seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities); in show_cpuinfo()
437 boot_cpu_data.pdc.sys_model_name, in show_cpuinfo()
442 boot_cpu_data.hversion, in show_cpuinfo()
443 boot_cpu_data.sversion ); in show_cpuinfo()
453 boot_cpu_data.pdc.model.sw_id); in show_cpuinfo()