xics-common.c (c64638d5091a5630d0f5f5ab7001bdee1ad194f2) | xics-common.c (aa9c5adf2f61da39c92280d9336e091852e292ff) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2011 IBM Corporation. 4 */ 5#include <linux/types.h> 6#include <linux/threads.h> 7#include <linux/kernel.h> 8#include <linux/irq.h> --- 187 unchanged lines hidden (view full) --- 196 197 for_each_irq_desc(virq, desc) { 198 struct irq_chip *chip; 199 long server; 200 unsigned long flags; 201 struct ics *ics; 202 203 /* We can't set affinity on ISA interrupts */ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2011 IBM Corporation. 4 */ 5#include <linux/types.h> 6#include <linux/threads.h> 7#include <linux/kernel.h> 8#include <linux/irq.h> --- 187 unchanged lines hidden (view full) --- 196 197 for_each_irq_desc(virq, desc) { 198 struct irq_chip *chip; 199 long server; 200 unsigned long flags; 201 struct ics *ics; 202 203 /* We can't set affinity on ISA interrupts */ |
204 if (virq < NR_IRQS_LEGACY) | 204 if (virq < NUM_ISA_INTERRUPTS) |
205 continue; 206 /* We only need to migrate enabled IRQS */ 207 if (!desc->action) 208 continue; 209 if (desc->irq_data.domain != xics_host) 210 continue; 211 irq = desc->irq_data.hwirq; 212 /* We need to get IPIs still. */ --- 259 unchanged lines hidden (view full) --- 472 /* Patch up IPI chip EOI */ 473 xics_ipi_chip.irq_eoi = icp_ops->eoi; 474 475 /* Now locate ICS */ 476 rc = ics_rtas_init(); 477 if (rc < 0) 478 rc = ics_opal_init(); 479 if (rc < 0) | 205 continue; 206 /* We only need to migrate enabled IRQS */ 207 if (!desc->action) 208 continue; 209 if (desc->irq_data.domain != xics_host) 210 continue; 211 irq = desc->irq_data.hwirq; 212 /* We need to get IPIs still. */ --- 259 unchanged lines hidden (view full) --- 472 /* Patch up IPI chip EOI */ 473 xics_ipi_chip.irq_eoi = icp_ops->eoi; 474 475 /* Now locate ICS */ 476 rc = ics_rtas_init(); 477 if (rc < 0) 478 rc = ics_opal_init(); 479 if (rc < 0) |
480 rc = ics_native_init(); 481 if (rc < 0) |
|
480 pr_warn("XICS: Cannot find a Source Controller !\n"); 481 482 /* Initialize common bits */ 483 xics_get_server_size(); 484 xics_update_irq_servers(); 485 xics_init_host(); 486 xics_setup_cpu(); 487} | 482 pr_warn("XICS: Cannot find a Source Controller !\n"); 483 484 /* Initialize common bits */ 485 xics_get_server_size(); 486 xics_update_irq_servers(); 487 xics_init_host(); 488 xics_setup_cpu(); 489} |