projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unneeded proc_yield.
[bertos.git]
/
examples
/
demo
/
demo.c
diff --git
a/examples/demo/demo.c
b/examples/demo/demo.c
index 9c2169ccef7e1236b2c464016341906a902468de..f4928c10fd0c75c79c03967ff04565a614f67673 100644
(file)
--- a/
examples/demo/demo.c
+++ b/
examples/demo/demo.c
@@
-299,7
+299,10
@@
static cpu_stack_t monitor_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]
int main(int argc, char *argv[])
{
emul_init(&argc, argv);
int main(int argc, char *argv[])
{
emul_init(&argc, argv);
- irq_init();
+
+ #if CONFIG_KERN_PREEMPT
+ irq_init();
+ #endif
timer_init();
buz_init();
kbd_init();
timer_init();
buz_init();
kbd_init();