processor.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) processor.c (62773112acc55d29727465d075fc61ed08a0a532)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Initial setup-routines for HP 9000 based hardware.
4 *
5 * Copyright (C) 1991, 1992, 1995 Linus Torvalds
6 * Modifications for PA-RISC (C) 1999-2008 Helge Deller <deller@gmx.de>
7 * Modifications copyright 1999 SuSE GmbH (Philipp Rumpf)
8 * Modifications copyright 2000 Martin K. Petersen <mkp@mkp.net>

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

14#include <linux/delay.h>
15#include <linux/init.h>
16#include <linux/mm.h>
17#include <linux/module.h>
18#include <linux/seq_file.h>
19#include <linux/random.h>
20#include <linux/slab.h>
21#include <linux/cpu.h>
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Initial setup-routines for HP 9000 based hardware.
4 *
5 * Copyright (C) 1991, 1992, 1995 Linus Torvalds
6 * Modifications for PA-RISC (C) 1999-2008 Helge Deller <deller@gmx.de>
7 * Modifications copyright 1999 SuSE GmbH (Philipp Rumpf)
8 * Modifications copyright 2000 Martin K. Petersen <mkp@mkp.net>

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

14#include <linux/delay.h>
15#include <linux/init.h>
16#include <linux/mm.h>
17#include <linux/module.h>
18#include <linux/seq_file.h>
19#include <linux/random.h>
20#include <linux/slab.h>
21#include <linux/cpu.h>
22#include <asm/topology.h>
22#include <asm/param.h>
23#include <asm/cache.h>
24#include <asm/hardware.h> /* for register_parisc_driver() stuff */
25#include <asm/processor.h>
26#include <asm/page.h>
27#include <asm/pdc.h>
28#include <asm/pdcpat.h>
29#include <asm/irq.h> /* for struct irq_region */

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

385
386 seq_printf(m, "cpu\t\t: %s\n", boot_cpu_data.cpu_name );
387
388 /* cpu MHz */
389 seq_printf(m, "cpu MHz\t\t: %d.%06d\n",
390 boot_cpu_data.cpu_hz / 1000000,
391 boot_cpu_data.cpu_hz % 1000000 );
392
23#include <asm/param.h>
24#include <asm/cache.h>
25#include <asm/hardware.h> /* for register_parisc_driver() stuff */
26#include <asm/processor.h>
27#include <asm/page.h>
28#include <asm/pdc.h>
29#include <asm/pdcpat.h>
30#include <asm/irq.h> /* for struct irq_region */

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

386
387 seq_printf(m, "cpu\t\t: %s\n", boot_cpu_data.cpu_name );
388
389 /* cpu MHz */
390 seq_printf(m, "cpu MHz\t\t: %d.%06d\n",
391 boot_cpu_data.cpu_hz / 1000000,
392 boot_cpu_data.cpu_hz % 1000000 );
393
393#ifdef CONFIG_PARISC_CPU_TOPOLOGY
394#ifdef CONFIG_GENERIC_ARCH_TOPOLOGY
394 seq_printf(m, "physical id\t: %d\n",
395 topology_physical_package_id(cpu));
396 seq_printf(m, "siblings\t: %d\n",
397 cpumask_weight(topology_core_cpumask(cpu)));
398 seq_printf(m, "core id\t\t: %d\n", topology_core_id(cpu));
399#endif
400
401 seq_printf(m, "capabilities\t:");

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

455
456/**
457 * processor_init - Processor initialization procedure.
458 *
459 * Register this driver.
460 */
461void __init processor_init(void)
462{
395 seq_printf(m, "physical id\t: %d\n",
396 topology_physical_package_id(cpu));
397 seq_printf(m, "siblings\t: %d\n",
398 cpumask_weight(topology_core_cpumask(cpu)));
399 seq_printf(m, "core id\t\t: %d\n", topology_core_id(cpu));
400#endif
401
402 seq_printf(m, "capabilities\t:");

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

456
457/**
458 * processor_init - Processor initialization procedure.
459 *
460 * Register this driver.
461 */
462void __init processor_init(void)
463{
464 reset_cpu_topology();
463 register_parisc_driver(&cpu_driver);
464}
465 register_parisc_driver(&cpu_driver);
466}