projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preemption: set default kernel quantum to 11 ms.
[bertos.git]
/
bertos
/
kern
/
proc.c
diff --git
a/bertos/kern/proc.c
b/bertos/kern/proc.c
index 18c89599eb689dcce8344ef5be7a9af626f669d2..c422e729c6912963f51bfcd89f75a7cee269e290 100644
(file)
--- a/
bertos/kern/proc.c
+++ b/
bertos/kern/proc.c
@@
-85,7
+85,7
@@
static struct Process main_process;
/**
* Local heap dedicated to allocate the memory used by the processes.
*/
/**
* Local heap dedicated to allocate the memory used by the processes.
*/
-static HEAP_DEFINE_BUF(heap_buf,
KERN_MINSTACKSIZE * 128
);
+static HEAP_DEFINE_BUF(heap_buf,
CONFIG_KERN_HEAP_SIZE
);
static Heap proc_heap;
/*
static Heap proc_heap;
/*
@@
-139,10
+139,7
@@
void proc_init(void)
monitor_init();
monitor_add(current_process, "main");
#endif
monitor_init();
monitor_add(current_process, "main");
#endif
-
-#if CONFIG_KERN_PREEMPT
- preempt_init();
-#endif
+ proc_schedInit();
MOD_INIT(proc);
}
MOD_INIT(proc);
}