topology.h (4f2c0a4acffbec01079c28f839422e64ddeff004) topology.h (46bcce503197d1019ee5c49ccde978e31298e35f)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5#ifndef __ASM_TOPOLOGY_H
6#define __ASM_TOPOLOGY_H
7
8#include <linux/smp.h>
9
10#ifdef CONFIG_NUMA
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5#ifndef __ASM_TOPOLOGY_H
6#define __ASM_TOPOLOGY_H
7
8#include <linux/smp.h>
9
10#ifdef CONFIG_NUMA
11#include <asm/numa.h>
11
12extern cpumask_t cpus_on_node[];
13
14#define cpumask_of_node(node) (&cpus_on_node[node])
15
16struct pci_bus;
17extern int pcibus_to_node(struct pci_bus *);
18

--- 23 unchanged lines hidden ---
12
13extern cpumask_t cpus_on_node[];
14
15#define cpumask_of_node(node) (&cpus_on_node[node])
16
17struct pci_bus;
18extern int pcibus_to_node(struct pci_bus *);
19

--- 23 unchanged lines hidden ---