git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1758 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-03-19 20:27:40 +00:00
parent 62cb008dfa
commit 295f370672
2 changed files with 9 additions and 9 deletions

View File

@ -115,12 +115,12 @@ Settings: SYSCLK=72, ACR=0x12 (2 wait states)
--- Score : 204767 threads/S --- Score : 204767 threads/S
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 11.7 (Benchmark, mass reschedulation, 5 threads) --- Test Case 11.7 (Benchmark, mass reschedule, 5 threads)
--- Score : 57135 reschedulations/S, 342810 ctxswc/S --- Score : 57135 reschedules/S, 342810 ctxswc/S
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 11.8 (Benchmark, round robin context switching) --- Test Case 11.8 (Benchmark, round robin context switching)
--- Score : 505284 reschedulations/S, 505284 ctxswc/S --- Score : 429720 ctxswc/S
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 11.9 (Benchmark, I/O Queues throughput) --- Test Case 11.9 (Benchmark, I/O Queues throughput)
@ -128,7 +128,7 @@ Settings: SYSCLK=72, ACR=0x12 (2 wait states)
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 11.10 (Benchmark, virtual timers set/reset) --- Test Case 11.10 (Benchmark, virtual timers set/reset)
--- Score : 647640 timers/S --- Score : 647548 timers/S
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 11.11 (Benchmark, semaphores wait/signal) --- Test Case 11.11 (Benchmark, semaphores wait/signal)

View File

@ -212,18 +212,18 @@ void chSchWakeupS(Thread *ntp, msg_t msg) {
*/ */
#if !defined(PORT_OPTIMIZED_DORESCHEDULEI) || defined(__DOXYGEN__) #if !defined(PORT_OPTIMIZED_DORESCHEDULEI) || defined(__DOXYGEN__)
void chSchDoRescheduleI(void) { void chSchDoRescheduleI(void) {
Thread *otp, *ntp; Thread *otp;
#if CH_TIME_QUANTUM > 0 #if CH_TIME_QUANTUM > 0
rlist.r_preempt = CH_TIME_QUANTUM; rlist.r_preempt = CH_TIME_QUANTUM;
#endif #endif
otp = currp; otp = currp;
/* Picks the first thread from the ready queue and makes it current.*/ /* Picks the first thread from the ready queue and makes it current.*/
(ntp = fifo_remove(&rlist.r_queue))->p_state = THD_STATE_CURRENT; setcurrp(fifo_remove(&rlist.r_queue));
setcurrp(ntp); currp->p_state = THD_STATE_CURRENT;
chSchReadyI(otp); chSchReadyI(otp);
chDbgTrace(ntp, otp); chDbgTrace(currp, otp);
chSysSwitchI(ntp, otp); chSysSwitchI(currp, otp);
} }
#endif /* !defined(PORT_OPTIMIZED_DORESCHEDULEI) */ #endif /* !defined(PORT_OPTIMIZED_DORESCHEDULEI) */