kernel.h (97f2e93a66a804ae9b6187998dbc4427b647e274) | kernel.h (0e981d79b19da8fc550ea0dbe46e8658be988db4) |
---|---|
1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013-2016 Mellanox Technologies, Ltd. 6 * Copyright (c) 2014-2015 François Tigeot 7 * All rights reserved. 8 * --- 583 unchanged lines hidden (view full) --- 592#define num_possible_cpus() mp_ncpus 593#define num_online_cpus() mp_ncpus 594 595#if defined(__i386__) || defined(__amd64__) 596extern bool linux_cpu_has_clflush; 597#define cpu_has_clflush linux_cpu_has_clflush 598#endif 599 | 1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013-2016 Mellanox Technologies, Ltd. 6 * Copyright (c) 2014-2015 François Tigeot 7 * All rights reserved. 8 * --- 583 unchanged lines hidden (view full) --- 592#define num_possible_cpus() mp_ncpus 593#define num_online_cpus() mp_ncpus 594 595#if defined(__i386__) || defined(__amd64__) 596extern bool linux_cpu_has_clflush; 597#define cpu_has_clflush linux_cpu_has_clflush 598#endif 599 |
600typedef struct pm_message { 601 int event; 602} pm_message_t; 603 | |
604/* Swap values of a and b */ 605#define swap(a, b) do { \ 606 typeof(a) _swap_tmp = a; \ 607 a = b; \ 608 b = _swap_tmp; \ 609} while (0) 610 611#define DIV_ROUND_CLOSEST(x, divisor) (((x) + ((divisor) / 2)) / (divisor)) --- 152 unchanged lines hidden --- | 600/* Swap values of a and b */ 601#define swap(a, b) do { \ 602 typeof(a) _swap_tmp = a; \ 603 a = b; \ 604 b = _swap_tmp; \ 605} while (0) 606 607#define DIV_ROUND_CLOSEST(x, divisor) (((x) + ((divisor) / 2)) / (divisor)) --- 152 unchanged lines hidden --- |