HomeFreeBSD

Add kpreempt_[dis|en]able macros in <sys/disp.h>

Description

Add kpreempt_[dis|en]able macros in <sys/disp.h>

To support preempt enabled kernels in ZFS on Linux, there are a couple
places where the ZFS code needs to disable interrupts. This change adds
the Solaris preempt functions and maps them to the equivalent ZFS
functions, allowing the ZFS to make use of them.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #98

Details

Provenance
Prakash Surya <surya1@llnl.gov>Authored on Aug 24 2012, 5:42 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 24 2012, 10:18 PM
Parents
rG08850eddcb12: Avoid calling smp_processor_id in spl_magazine_age
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG45324c7c419b: Add kpreempt_[dis|en]able macros in <sys/disp.h> (authored by Prakash Surya <surya1@llnl.gov>).Aug 24 2012, 10:18 PM