4 * Userspace RCU library - test arch headers
6 * Copyright February 2021 Michael Jeanson <mjeanson@efficios.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #include <urcu/arch.h>
32 * This is only to make sure the static inline caa_get_cycles() in the public
33 * headers builds properly.
36 void test_caa_get_cycles(void) {
37 caa_cycles_t cycles
= 0;
40 cycles
= caa_get_cycles();
42 ok(cycles
!= 0, "caa_get_cycles works");
49 test_caa_get_cycles();
This page took 0.030535 seconds and 4 git commands to generate.