No description
Find a file
Benjamin Walsh a73af53186 timers: prevent duration of 0 in timer_start/restart
Basically, this does not work anymore:

  task_timer_start(<timer>, 0, X, <sem>);

since it does not make much sense to have a timer with an expiry of 0
ticks. The code internally was setting the duration to be equal to the
period anyway. So, to achieve the same behaviour, do this:

  task_timer_start(<timer>, X, X, <sem>);

This has the positive side-effect of removing a small block of logic
that was handling the cases where duration was 0.

Change-Id: Ic4af4a17a129f14af4fea445bcaddabe89c27131
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:15:21 -05:00
arch microkernel: rename K_swapper to _k_server 2016-02-05 20:15:21 -05:00
doc irq: make utility functions private 2016-02-05 20:15:21 -05:00
drivers ioapic: cleanup code comments and doxygenize the file description 2016-02-05 20:15:20 -05:00
include timers: consolidate task_timer_start/restart() 2016-02-05 20:15:21 -05:00
kernel timers: prevent duration of 0 in timer_start/restart 2016-02-05 20:15:21 -05:00
lib build: build libc as object, not kbuild library (lib.a) 2016-02-05 20:14:45 -05:00
misc misc: remove old printk() stub 2016-02-05 20:15:20 -05:00
net Bluetooth: Fix alignment 2016-02-05 20:14:44 -05:00
samples timers: prevent duration of 0 in timer_start/restart 2016-02-05 20:15:21 -05:00
scripts allow linking of external application libraries 2016-02-05 20:15:21 -05:00
shared/include/nanokernel/x86 doxygen: add @brief and capitalize 2016-02-05 20:14:33 -05:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore initial commit for next-gen sanity checks 2016-02-05 20:14:42 -05:00
.mailmap First commit 2015-04-10 16:44:37 -07:00
Kconfig kconfig: Rename Zephyr OS -> Zephyr Kernel 2016-02-05 20:14:26 -05:00
Makefile allow linking of external application libraries 2016-02-05 20:15:21 -05:00
Makefile.inc build: simplify clean target 2016-02-05 20:14:45 -05:00
zephyr-env.sh Rename Zephyr OS into Zephyr Kernel 2016-02-05 20:14:26 -05:00