Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2019 17:06:10 +0000 (UTC)
From:      Johannes Lundberg <johalun@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348244 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201905241706.x4OH6AWf099233@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johalun
Date: Fri May 24 17:06:10 2019
New Revision: 348244
URL: https://svnweb.freebsd.org/changeset/base/348244

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

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/preempt.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/preempt.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/preempt.h	Fri May 24 17:04:27 2019	(r348243)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/preempt.h	Fri May 24 17:06:10 2019	(r348244)
@@ -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?201905241706.x4OH6AWf099233>