svn commit: r332777 - stable/11/sys/compat/linuxkpi/common/include/asm

Mark Johnston markj at FreeBSD.org
Thu Apr 19 15:11:19 UTC 2018


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_ */


More information about the svn-src-all mailing list