projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add semaphore to benchmark test.
[bertos.git]
/
bertos
/
benchmark
/
context_switch.c
diff --git
a/bertos/benchmark/context_switch.c
b/bertos/benchmark/context_switch.c
index 92d9d9dcd8e58894a906448554251959bd9b1006..ce051626bc6b770fc399097de9fea74f661cad62 100644
(file)
--- a/
bertos/benchmark/context_switch.c
+++ b/
bertos/benchmark/context_switch.c
@@
-73,7
+73,7
@@
static void NORETURN hp_process(void)
{
sig_wait(SIG_USER0);
#if CONFIG_USE_HP_TIMER
{
sig_wait(SIG_USER0);
#if CONFIG_USE_HP_TIMER
- end = timer_
clock_hp
();
+ end = timer_
hw_hpread
();
#endif
#if CONFIG_USE_LED
LED_ON();
#endif
#if CONFIG_USE_LED
LED_ON();
@@
-91,7
+91,7
@@
static void NORETURN lp_process(void)
{
sig_wait(SIG_USER1);
#if CONFIG_USE_HP_TIMER
{
sig_wait(SIG_USER1);
#if CONFIG_USE_HP_TIMER
- start = timer_
clock_hp
();
+ start = timer_
hw_hpread
();
#endif
#if CONFIG_USE_LED
LED_ON();
#endif
#if CONFIG_USE_LED
LED_ON();
@@
-123,7
+123,7
@@
void NORETURN context_switch(void)
while (1)
{
#if CONFIG_USE_HP_TIMER
while (1)
{
#if CONFIG_USE_HP_TIMER
- kfile_printf(&out.fd, "Switch: %lu.%lu usec\n",
+ kfile_printf(&out.fd, "Switch: %lu.%lu usec\n
\r
",
hptime_to_us((end - start)),
hptime_to_us((end - start) * 1000) % 1000);
#endif
hptime_to_us((end - start)),
hptime_to_us((end - start) * 1000) % 1000);
#endif