xref: /kernel/linux/linux-6.6/arch/x86/include/asm/irq_work.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/x86/include/asm/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _ASM_IRQ_WORK_H
362306a36Sopenharmony_ci#define _ASM_IRQ_WORK_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <asm/cpufeature.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifdef CONFIG_X86_LOCAL_APIC
862306a36Sopenharmony_cistatic inline bool arch_irq_work_has_interrupt(void)
962306a36Sopenharmony_ci{
1062306a36Sopenharmony_ci	return boot_cpu_has(X86_FEATURE_APIC);
1162306a36Sopenharmony_ci}
1262306a36Sopenharmony_ci#else
1362306a36Sopenharmony_cistatic inline bool arch_irq_work_has_interrupt(void)
1462306a36Sopenharmony_ci{
1562306a36Sopenharmony_ci	return false;
1662306a36Sopenharmony_ci}
1762306a36Sopenharmony_ci#endif
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif /* _ASM_IRQ_WORK_H */
20

Indexes created Thu Nov 07 10:32:03 CST 2024