aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/clocksource.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-01-26 15:26:35 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-01-26 15:26:35 +0000
commitfe68f570d4ddcd9ab3b3e776e4fc90bbc7d44699 (patch)
treef67227408f55e8b4c09fdadf6264a43e41ba34ad /sys/compat/linuxkpi/common/include/linux/clocksource.h
parent49b49cda41feabe3439f7318e8bf40e3896c7bf4 (diff)
Notes
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/clocksource.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/clocksource.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/clocksource.h b/sys/compat/linuxkpi/common/include/linux/clocksource.h
index f4d17f188796..5e2cd5ee95e9 100644
--- a/sys/compat/linuxkpi/common/include/linux/clocksource.h
+++ b/sys/compat/linuxkpi/common/include/linux/clocksource.h
@@ -2,7 +2,7 @@
* Copyright (c) 2010 Isilon Systems, Inc.
* Copyright (c) 2010 iX Systems, Inc.
* Copyright (c) 2010 Panasas, Inc.
- * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
+ * Copyright (c) 2013-2016 Mellanox Technologies, Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -29,12 +29,13 @@
* $FreeBSD$
*/
#ifndef _LINUX_CLOCKSOURCE_H
-#define _LINUX_CLOCKSOURCE_H
+#define _LINUX_CLOCKSOURCE_H
#include <asm/types.h>
+#define CLOCKSOURCE_MASK(x) ((cycle_t)(-1ULL >> ((-(x)) & 63)))
+
/* clocksource cycle base type */
typedef u64 cycle_t;
-
-#endif /* _LINUX_CLOCKSOURCE_H */
+#endif /* _LINUX_CLOCKSOURCE_H */