benchmark: context switch testcase improvement.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 19 May 2010 09:32:53 +0000 (09:32 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 19 May 2010 09:32:53 +0000 (09:32 +0000)
commite195f7358f727bcf1f553cb00b1085d6ac3cb6ee
tree51ad372656b6728dc898f26948cc80c4eabec958
parentf5691d573fb7aebea70e6e92fa987403a8a3e46e
benchmark: context switch testcase improvement.

Move LED_ON()/LED_OFF() just after sig_wait(). Since they represent a C
language barrier they basically disables optimizations around it,
causing time measurements to be more determistic.

Moreover, be sure to not start child processes before we set the right
priority.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3714 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/benchmark/context_switch.c