clocksource.h revision 294839
12490Sjkh/*- 22490Sjkh * Copyright (c) 2010 Isilon Systems, Inc. 32490Sjkh * Copyright (c) 2010 iX Systems, Inc. 42490Sjkh * Copyright (c) 2010 Panasas, Inc. 52490Sjkh * Copyright (c) 2013-2016 Mellanox Technologies, Ltd. 62490Sjkh * All rights reserved. 72490Sjkh * 82490Sjkh * Redistribution and use in source and binary forms, with or without 92490Sjkh * modification, are permitted provided that the following conditions 102490Sjkh * are met: 112490Sjkh * 1. Redistributions of source code must retain the above copyright 122490Sjkh * notice unmodified, this list of conditions, and the following 132490Sjkh * disclaimer. 142490Sjkh * 2. Redistributions in binary form must reproduce the above copyright 152490Sjkh * notice, this list of conditions and the following disclaimer in the 162490Sjkh * documentation and/or other materials provided with the distribution. 172490Sjkh * 182490Sjkh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 192490Sjkh * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 202490Sjkh * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 212490Sjkh * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 222490Sjkh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 232490Sjkh * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242490Sjkh * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252490Sjkh * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262490Sjkh * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 272490Sjkh * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282490Sjkh * 292490Sjkh * $FreeBSD: head/sys/compat/linuxkpi/common/include/linux/clocksource.h 294839 2016-01-26 15:26:35Z hselasky $ 302490Sjkh */ 312490Sjkh#ifndef _LINUX_CLOCKSOURCE_H 322490Sjkh#define _LINUX_CLOCKSOURCE_H 332490Sjkh 3410352Sjoerg#include <asm/types.h> 3510352Sjoerg 3610352Sjoerg#define CLOCKSOURCE_MASK(x) ((cycle_t)(-1ULL >> ((-(x)) & 63))) 3710352Sjoerg 3810352Sjoerg/* clocksource cycle base type */ 392490Sjkhtypedef u64 cycle_t; 4053920Sbillf 412490Sjkh#endif /* _LINUX_CLOCKSOURCE_H */ 422490Sjkh