Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Implement unlik...
details: https://anonhg.NetBSD.org/src/rev/fb74e49ca9fe
branches: riastradh-drm2
changeset: 788136:fb74e49ca9fe
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:24:16 2013 +0000
description:
Implement unlikely as __predict_false in <linux/kernel.h>.
diffstat:
sys/external/bsd/drm2/include/linux/kernel.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 647698ba6c02 -r fb74e49ca9fe sys/external/bsd/drm2/include/linux/kernel.h
--- a/sys/external/bsd/drm2/include/linux/kernel.h Wed Jul 24 02:24:02 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/kernel.h Wed Jul 24 02:24:16 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.1.2.8 2013/07/24 02:21:43 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.1.2.9 2013/07/24 02:24:16 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,6 +38,8 @@
#define __printf __printflike
#define __user
+#define unlikely(X) __predict_false(X)
+
#define container_of(PTR, TYPE, FIELD) \
((TYPE *)(((char *)(PTR)) - offsetof(TYPE, FIELD)))
Home |
Main Index |
Thread Index |
Old Index