arch/sh/kernel/irq.c

Source file repositories/reference/linux-study-clean/arch/sh/kernel/irq.c

File Facts

System
Linux kernel
Corpus path
arch/sh/kernel/irq.c
Extension
.c
Size
5928 bytes
Lines
250
Domain
Architecture Layer
Bucket
arch/sh
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

if (irq_data_get_node(data) == cpu) {
			const struct cpumask *mask = irq_data_get_affinity_mask(data);
			unsigned int newcpu = cpumask_any_and(mask,
							      cpu_online_mask);
			if (newcpu >= nr_cpu_ids) {
				pr_info_ratelimited("IRQ%u no longer affine to CPU%u\n",
						    irq, cpu);

				irq_set_affinity(irq, cpu_all_mask);
			} else {
				irq_set_affinity(irq, mask);
			}
		}
	}
}
#endif

Annotation

Implementation Notes