Module: xenomai-forge Branch: next Commit: 695b7224f2eeb0b17c60425db71a8a746b735070 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=695b7224f2eeb0b17c60425db71a8a746b735070
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Jun 22 15:21:04 2013 +0200 copperplate/clockobj: disable low resolution clock by default Switch default setting to the most frequent use case. People running tick-based RTOS emulators (e.g. psos, vxworks) have to turn it on explicitly using --enable-lores-clock. --- configure | 2 +- configure.in | 4 ++-- lib/copperplate/clockobj.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index a8aa220..67e5646 100755 --- a/configure +++ b/configure @@ -12690,7 +12690,7 @@ $as_echo "#define CONFIG_XENO_DEBUG_FULL 1" >>confdefs.h -lores_clock=y +unset lores_clock { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the low resolution clock" >&5 $as_echo_n "checking whether to enable the low resolution clock... " >&6; } # Check whether --enable-lores-clock was given. diff --git a/configure.in b/configure.in index b14fae5..816af87 100644 --- a/configure.in +++ b/configure.in @@ -170,9 +170,9 @@ test \! x$debug_mode = x && AC_DEFINE(CONFIG_XENO_DEBUG,1,[config]) AM_CONDITIONAL(XENO_DEBUG_FULL,[test x$debug_mode = xfull]) test x$debug_mode = xfull && AC_DEFINE(CONFIG_XENO_DEBUG_FULL,1,[config]) -dnl Low resolution clock (default: on) +dnl Low resolution clock (default: off) -lores_clock=y +unset lores_clock AC_MSG_CHECKING(whether to enable the low resolution clock) AC_ARG_ENABLE(lores-clock, AS_HELP_STRING([--enable-lores-clock], [Enable low resolution clock]), diff --git a/lib/copperplate/clockobj.c b/lib/copperplate/clockobj.c index 52ecb6c..a2ed56e 100644 --- a/lib/copperplate/clockobj.c +++ b/lib/copperplate/clockobj.c @@ -92,7 +92,7 @@ int __clockobj_set_resolution(struct clockobj *clkobj, unsigned int resolution_ns) { if (resolution_ns > 1) { - warning("support for low resolution clock disabled"); + warning("low resolution clock disabled [--enable-lores-clock]"); return __bt(-EINVAL); } _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git