summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-22 20:19:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-22 20:19:25 +0000
commit0a6fb223b6f6e7a71f733afd6dc65fb529818043 (patch)
treebf30f5f4b3fcf462008e2302d84a810974a03654 /cpukit/score/include
parente0de6ef3ad4226a91c024823e33dd45c8cb306b7 (diff)
downloadrtems-0a6fb223b6f6e7a71f733afd6dc65fb529818043.tar.bz2
Patch from Chris John <cjohns@awa.com.au> to add use of a select statement
in the unix port idle thread task. This should keep the entire application from blocking when any component does a blocking application. Also added TOD_MICROSECONDS_TO_TICKS.
Diffstat (limited to 'cpukit/score/include')
-rw-r--r--cpukit/score/include/rtems/score/tod.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/tod.h b/cpukit/score/include/rtems/score/tod.h
index ff2864059c..36d0097669 100644
--- a/cpukit/score/include/rtems/score/tod.h
+++ b/cpukit/score/include/rtems/score/tod.h
@@ -236,6 +236,21 @@ void _TOD_Tickle(
#define TOD_MILLISECONDS_TO_MICROSECONDS(_ms) ((_ms) * 1000)
/*
+ * TOD_MICROSECONDS_TO_TICKS
+ *
+ * DESCRIPTION:
+ *
+ * This routine converts an interval expressed in microseconds to ticks.
+ *
+ * NOTE:
+ *
+ * This must be a macro so it can be used in "static" tables.
+ */
+
+#define TOD_MICROSECONDS_TO_TICKS(_us) \
+ ((_us) / _TOD_Microseconds_per_tick)
+
+/*
* TOD_MILLISECONDS_TO_TICKS
*
* DESCRIPTION: