Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/asm Make this a proper boolean...
details: https://anonhg.NetBSD.org/src/rev/ef0657dad62f
branches: trunk
changeset: 992886:ef0657dad62f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 13:44:04 2018 +0000
description:
Make this a proper boolean. Skip ISSET. Add some spacing.
diffstat:
sys/external/bsd/drm2/include/asm/cpufeature.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e768d89eae30 -r ef0657dad62f sys/external/bsd/drm2/include/asm/cpufeature.h
--- a/sys/external/bsd/drm2/include/asm/cpufeature.h Mon Aug 27 13:43:52 2018 +0000
+++ b/sys/external/bsd/drm2/include/asm/cpufeature.h Mon Aug 27 13:44:04 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufeature.h,v 1.2 2018/08/27 07:08:47 riastradh Exp $ */
+/* $NetBSD: cpufeature.h,v 1.3 2018/08/27 13:44:04 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -35,12 +35,15 @@
#include <machine/cpu.h>
#if defined(__i386__) || defined(__x86_64__)
-#define cpu_has_clflush ISSET(cpu_info_primary.ci_feat_val[0], CPUID_CFLUSH)
+
+#define cpu_has_clflush ((cpu_info_primary.ci_feat_val[0] & CPUID_CFLUSH) != 0)
+
static inline size_t
cache_line_size(void)
{
return cpu_info_primary.ci_cflush_lsize;
}
-#endif
+
+#endif /* x86 */
#endif /* _LINUX_ASM_CPUFEATURE_H_ */
Home |
Main Index |
Thread Index |
Old Index