projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing tests
[lttv.git]
/
tests
/
kernel
/
test-cmpxchg.c
diff --git
a/tests/kernel/test-cmpxchg.c
b/tests/kernel/test-cmpxchg.c
index 77eafaf084ffdaf95e113fd53f17aadde7149519..69a25334219fc9ef8ec275b3b266212ca740b3db 100644
(file)
--- a/
tests/kernel/test-cmpxchg.c
+++ b/
tests/kernel/test-cmpxchg.c
@@
-12,11
+12,10
@@
#define NR_LOOPS 20000
#define NR_LOOPS 20000
-
volatile int test_val = 100;
volatile int test_val = 100;
-static void do_test(void)
+static
inline
void do_test(void)
{
int val, ret;
{
int val, ret;
@@
-25,7
+24,7
@@
static void do_test(void)
ret = cmpxchg(&test_val, val, val+1);
}
ret = cmpxchg(&test_val, val, val+1);
}
-void (*fct)(void) = do_test;
+
//
void (*fct)(void) = do_test;
static int ltt_test_init(void)
{
static int ltt_test_init(void)
{
This page took
0.026454 seconds
and
4
git commands to generate.