mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
irqchip/loongson-eiointc: Use pa_to_nid() rather than hard-code
NODE_ADDRSPACE_SHIFT is 44 now but may be changed in the future, so use pa_to_nid() rather than the hard-coded valud. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20261013062358.60654-1-chenhuacai@loongson.cn
This commit is contained in:
parent
ff6f8cd291
commit
0a0cdf87d0
|
|
@ -454,7 +454,7 @@ static int __init pch_pic_parse_madt(union acpi_subtable_headers *header,
|
|||
const unsigned long end)
|
||||
{
|
||||
struct acpi_madt_bio_pic *pchpic_entry = (struct acpi_madt_bio_pic *)header;
|
||||
unsigned int node = (pchpic_entry->address >> 44) & 0xf;
|
||||
unsigned int node = pa_to_nid(pchpic_entry->address) & 0xf;
|
||||
struct irq_domain *parent = acpi_get_vec_parent(node, pch_group);
|
||||
|
||||
if (parent)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user