svn commit: r347891 - head/sys/compat/linuxkpi/common/include/linux

Johannes Lundberg johalun at FreeBSD.org
Thu May 16 21:07:38 UTC 2019


Author: johalun
Date: Thu May 16 21:07:37 2019
New Revision: 347891
URL: https://svnweb.freebsd.org/changeset/base/347891

Log:
  LinuxKPI: Add in_task macro.
  
  This patch is part of D19565
  
  Reviewed by:	hps, bwidawsk
  Approved by:	imp (mentor), hps
  Obtained from:	bwidawsk
  MFC after:	1 week

Modified:
  head/sys/compat/linuxkpi/common/include/linux/preempt.h

Modified: head/sys/compat/linuxkpi/common/include/linux/preempt.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/preempt.h	Thu May 16 20:41:28 2019	(r347890)
+++ head/sys/compat/linuxkpi/common/include/linux/preempt.h	Thu May 16 21:07:37 2019	(r347891)
@@ -34,6 +34,8 @@
 #define	in_interrupt() \
 	(curthread->td_intr_nesting_level || curthread->td_critnest)
 
+#define	in_task() (curthread->td_priority >= PI_SOFT)
+
 #define	preempt_disable()	critical_enter()
 #define	preempt_enable()	critical_exit()
 


More information about the svn-src-head mailing list