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:
Huacai Chen 2026-10-13 14:23:58 +08:00 committed by Thomas Gleixner
parent ff6f8cd291
commit 0a0cdf87d0

View File

@ -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)