Page MenuHomeFreeBSD

LinuxKPI: add irq_set_affinity_hint()
ClosedPublic

Authored by bz on May 24 2021, 6:28 PM.
Tags
None
Referenced Files
F149458776: D30427.id89751.diff
Tue, Mar 24, 2:50 PM
F149382892: D30427.id89778.diff
Tue, Mar 24, 2:32 AM
F149376770: D30427.id89812.diff
Tue, Mar 24, 1:42 AM
F149309182: D30427.diff
Mon, Mar 23, 3:45 PM
Unknown Object (File)
Thu, Mar 19, 2:14 AM
Unknown Object (File)
Wed, Mar 18, 4:15 AM
Unknown Object (File)
Sun, Mar 15, 12:51 PM
Unknown Object (File)
Feb 8 2026, 8:19 AM

Details

Summary

Add an implementation for irq_set_affinity_hint() to linux/interrupt.h
and include linux/hardirq.h for synchronize_irq() as needed by
wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by:
Differential Revision:

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.May 24 2021, 6:28 PM
hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/interrupt.h
202

Synchronize IRQ is already defined here:
sys/compat/linuxkpi/common/include/linux/hardirq.h:#define synchronize_irq(irq) _intr_drain((irq))

Please resolve!

sys/compat/linuxkpi/common/include/linux/interrupt.h
44

This is also defined in irqreturn but differently. Sigh.

202

Seems we can just include linux/hardirq.h here.

Include hardirq.h instead of synchronize_irq().

bz marked an inline comment as done.May 25 2021, 8:25 AM
bz retitled this revision from LinuxKPI: add irq_set_affinity_hint() and synchronize_irq() to LinuxKPI: add irq_set_affinity_hint().May 25 2021, 8:35 AM
bz edited the summary of this revision. (Show Details)

Can you have a look at this updated version as well please?

s/__inline/inline

Else looks good.

This revision is now accepted and ready to land.May 25 2021, 11:30 AM
This revision was automatically updated to reflect the committed changes.