1*62f2367eSJean-Sébastien Pédron /*- 2*62f2367eSJean-Sébastien Pédron * Copyright (c) 2025 The FreeBSD Foundation 3*62f2367eSJean-Sébastien Pédron * Copyright (c) 2025 Jean-Sébastien Pédron 4*62f2367eSJean-Sébastien Pédron * 5*62f2367eSJean-Sébastien Pédron * This software was developed by Jean-Sébastien Pédron under sponsorship 6*62f2367eSJean-Sébastien Pédron * from the FreeBSD Foundation. 7*62f2367eSJean-Sébastien Pédron * 8*62f2367eSJean-Sébastien Pédron * Redistribution and use in source and binary forms, with or without 9*62f2367eSJean-Sébastien Pédron * modification, are permitted provided that the following conditions 10*62f2367eSJean-Sébastien Pédron * are met: 11*62f2367eSJean-Sébastien Pédron * 1. Redistributions of source code must retain the above copyright 12*62f2367eSJean-Sébastien Pédron * notice, this list of conditions and the following disclaimer. 13*62f2367eSJean-Sébastien Pédron * 2. Redistributions in binary form must reproduce the above copyright 14*62f2367eSJean-Sébastien Pédron * notice, this list of conditions and the following disclaimer in the 15*62f2367eSJean-Sébastien Pédron * documentation and/or other materials provided with the distribution. 16*62f2367eSJean-Sébastien Pédron * 17*62f2367eSJean-Sébastien Pédron * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18*62f2367eSJean-Sébastien Pédron * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19*62f2367eSJean-Sébastien Pédron * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20*62f2367eSJean-Sébastien Pédron * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21*62f2367eSJean-Sébastien Pédron * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*62f2367eSJean-Sébastien Pédron * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23*62f2367eSJean-Sébastien Pédron * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24*62f2367eSJean-Sébastien Pédron * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25*62f2367eSJean-Sébastien Pédron * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*62f2367eSJean-Sébastien Pédron * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*62f2367eSJean-Sébastien Pédron * SUCH DAMAGE. 28*62f2367eSJean-Sébastien Pédron */ 29*62f2367eSJean-Sébastien Pédron 30*62f2367eSJean-Sébastien Pédron #ifndef _LINUXKPI_LINUX_UNITS_H_ 31*62f2367eSJean-Sébastien Pédron #define _LINUXKPI_LINUX_UNITS_H_ 32*62f2367eSJean-Sébastien Pédron 33*62f2367eSJean-Sébastien Pédron #define NANOHZ_PER_HZ 1000000000UL 34*62f2367eSJean-Sébastien Pédron #define MICROHZ_PER_HZ 1000000UL 35*62f2367eSJean-Sébastien Pédron #define MILLIHZ_PER_HZ 1000UL 36*62f2367eSJean-Sébastien Pédron #define HZ_PER_KHZ 1000UL 37*62f2367eSJean-Sébastien Pédron #define KHZ_PER_MHZ 1000UL 38*62f2367eSJean-Sébastien Pédron #define HZ_PER_MHZ 1000000UL 39*62f2367eSJean-Sébastien Pédron 40*62f2367eSJean-Sébastien Pédron #endif /* _LINUXKPI_LINUX_UNITS_H_ */ 41