mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
LoongArch: Make cpumask_of_node() robust against NUMA_NO_NODE
The arch definition of cpumask_of_node() cannot handle NUMA_NO_NODE - which is a valid index - so add a check for this. Cc: stable@vger.kernel.org Signed-off-by: John Garry <john.g.garry@oracle.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
parent
abca6583a2
commit
94b0c831ed
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
extern cpumask_t cpus_on_node[];
|
||||
|
||||
#define cpumask_of_node(node) (&cpus_on_node[node])
|
||||
#define cpumask_of_node(node) ((node) == NUMA_NO_NODE ? cpu_all_mask : &cpus_on_node[node])
|
||||
|
||||
struct pci_bus;
|
||||
extern int pcibus_to_node(struct pci_bus *);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user