Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 21:07:37 +0000 (UTC)
From:      Johannes Lundberg <johalun@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347891 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201905162107.x4GL7bno025310@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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()
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905162107.x4GL7bno025310>