Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2018 15:11:18 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332777 - stable/11/sys/compat/linuxkpi/common/include/asm
Message-ID:  <201804191511.w3JFBI3e054333@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Apr 19 15:11:18 2018
New Revision: 332777
URL: https://svnweb.freebsd.org/changeset/base/332777

Log:
  MFC r332079:
  Fix the definitions of get_cpu() and put_cpu().

Modified:
  stable/11/sys/compat/linuxkpi/common/include/asm/smp.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/asm/smp.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/asm/smp.h	Thu Apr 19 15:10:42 2018	(r332776)
+++ stable/11/sys/compat/linuxkpi/common/include/asm/smp.h	Thu Apr 19 15:11:18 2018	(r332777)
@@ -38,11 +38,11 @@ int	linux_wbinvd_on_all_cpus(void);
 #endif
 
 #define	get_cpu() ({			\
-	sched_pin();			\
+	critical_enter();		\
 	PCPU_GET(cpuid);		\
 })
 
 #define	put_cpu()			\
-	sched_unpin()
+	critical_exit()
 
 #endif /* _ASM_SMP_H_ */



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