Deleted Added
full compact
subr_ntoskrnl.c (283291) subr_ntoskrnl.c (298649)
1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ntoskrnl.c 283291 2015-05-22 17:05:21Z jkim $");
34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ntoskrnl.c 298649 2016-04-26 15:38:17Z pfg $");
35
36#include <sys/ctype.h>
37#include <sys/unistd.h>
38#include <sys/param.h>
39#include <sys/types.h>
40#include <sys/errno.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>

--- 4159 unchanged lines hidden (view full) ---

4202{
4203 int ticks;
4204 struct timeval tv;
4205
4206 getmicrouptime(&tv);
4207
4208 ticks = tvtohz(&tv);
4209
35
36#include <sys/ctype.h>
37#include <sys/unistd.h>
38#include <sys/param.h>
39#include <sys/types.h>
40#include <sys/errno.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>

--- 4159 unchanged lines hidden (view full) ---

4202{
4203 int ticks;
4204 struct timeval tv;
4205
4206 getmicrouptime(&tv);
4207
4208 ticks = tvtohz(&tv);
4209
4210 return ticks * ((10000000 + hz - 1) / hz);
4210 return ticks * howmany(10000000, hz);
4211}
4212
4213static struct thread *
4214KeGetCurrentThread(void)
4215{
4216
4217 return curthread;
4218}

--- 239 unchanged lines hidden ---
4211}
4212
4213static struct thread *
4214KeGetCurrentThread(void)
4215{
4216
4217 return curthread;
4218}

--- 239 unchanged lines hidden ---