OSDN Git Service
(root)
/
pinky-bar
/
pinky-bar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063b140
)
Reverse the ticks macro from the previous commit
author
wifiextender
<router@archlinux.info>
Sat, 20 Aug 2016 03:31:38 +0000
(
05:31
+0200)
committer
wifiextender
<router@archlinux.info>
Sat, 20 Aug 2016 03:31:38 +0000
(
05:31
+0200)
src/include/options_generator.h
patch
|
blob
|
history
diff --git
a/src/include/options_generator.h
b/src/include/options_generator.h
index
4218ce7
..
aa63442
100644
(file)
--- a/
src/include/options_generator.h
+++ b/
src/include/options_generator.h
@@
-42,12
+42,15
@@
} \
GLUE(__VA_ARGS__);
+/* Let the platform ticks decide how much
+ * time is needed to sleep
+ * 100 in linux and 133 in freebsd */
#define NEW_CPU_LABEL(lbl, declareVar, useVar, ...) \
case lbl: \
{ \
declareVar; \
get_##useVar(useVar); \
- SLEEP_SLEEP_BABY(
TICKZ
* 1000000L); \
+ SLEEP_SLEEP_BABY(
sysconf(_SC_CLK_TCK)
* 1000000L); \
GET_N_FMT(useVar, arguments->all, __VA_ARGS__, useVar); \
} \
break;