Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 13:37:37 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/include/linux: hardirq.h

Log Message:
Can't and needn't xcall while cold.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/include/linux/hardirq.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/hardirq.h
diff -u src/sys/external/bsd/drm2/include/linux/hardirq.h:1.1 src/sys/external/bsd/drm2/include/linux/hardirq.h:1.2
--- src/sys/external/bsd/drm2/include/linux/hardirq.h:1.1	Mon Aug 27 07:14:42 2018
+++ src/sys/external/bsd/drm2/include/linux/hardirq.h	Mon Aug 27 13:37:37 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: hardirq.h,v 1.1 2018/08/27 07:14:42 riastradh Exp $	*/
+/*	$NetBSD: hardirq.h,v 1.2 2018/08/27 13:37:37 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -33,6 +33,7 @@
 #define	_LINUX_HARDIRQ_H_
 
 #include <sys/types.h>
+#include <sys/kernel.h>
 #include <sys/null.h>
 #include <sys/xcall.h>
 
@@ -53,7 +54,8 @@ static inline void
 synchronize_irq(int irq)
 {
 
-	xc_wait(xc_broadcast(0, synchronize_irq_xc, NULL, NULL));
+	if (!cold)
+		xc_wait(xc_broadcast(0, synchronize_irq_xc, NULL, NULL));
 }
 
 #endif	/* _LINUX_HARDIRQ_H_ */

Reply via email to