aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-11-22 21:51:17 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-11-22 21:51:17 +0000
commit013c0b493f8e9bfcf6792f7b92cf77e76416ee17 (patch)
tree123a80c2e2ff838cfd66a707218d7b320b9ba7ae /sys/sys/lock.h
parent4e96bf3a37e326dcb741f289d8adfac8884cca78 (diff)
downloadsrc-013c0b493f8e9bfcf6792f7b92cf77e76416ee17.tar.gz
src-013c0b493f8e9bfcf6792f7b92cf77e76416ee17.zip
locks: remove the file + line argument from internal primitives when not used
The pair is of use only in debug or LOCKPROF kernels, but was passed (zeroed) for many locks even in production kernels. While here whack the tid argument from wlock hard and xlock hard. There is no kbi change of any sort - "external" primitives still accept the pair.
Notes
Notes: svn path=/head/; revision=326106
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index fb3ad3101e88..efb30538f8ab 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -137,9 +137,13 @@ struct lock_class {
* operations. Otherwise, use default values to avoid the unneeded bloat.
*/
#if LOCK_DEBUG > 0
+#define LOCK_FILE_LINE_ARG_DEF , const char *file, int line
+#define LOCK_FILE_LINE_ARG , file, line
#define LOCK_FILE __FILE__
#define LOCK_LINE __LINE__
#else
+#define LOCK_FILE_LINE_ARG_DEF
+#define LOCK_FILE_LINE_ARG
#define LOCK_FILE NULL
#define LOCK_LINE 0
#endif