x86: Add intr_enable_src()

Function to enable specific IRQ source.

This will be used by the s2idle code to enable just SCIs on x86 to break
the CPU out of idle.

Reviewed by:	olce
Approved by:	olce
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D48734
This commit is contained in:
Aymeric Wibo
2026-01-13 23:15:55 +01:00
parent e8348e2b35
commit 38f941deb6
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -151,6 +151,7 @@ int intr_register_source(struct intsrc *isrc);
int intr_remove_handler(void *cookie);
void intr_resume(bool suspend_cancelled);
void intr_suspend(void);
void intr_enable_src(u_int irq);
void intr_reprogram(void);
void intrcnt_add(const char *name, u_long **countp);
void nexus_add_irq(u_long irq);
+9
View File
@@ -405,6 +405,15 @@ intr_suspend(void)
mtx_unlock(&intrpic_lock);
}
void
intr_enable_src(u_int irq)
{
struct intsrc *is;
is = interrupt_sources[irq];
is->is_pic->pic_enable_source(is);
}
static int
intr_assign_cpu(void *arg, int cpu)
{