#if CONFIG_KERNEL
#include <config_kern.h>
- #include <hw/switch.h>
+ #if CONFIG_KERN_PREEMPTIVE
+ #include <hw/switch.h>
+ #endif
#if CONFIG_KERN_SIGNALS
#include <kern/signal.h> /* sig_wait(), sig_check() */
#include <kern/proc.h> /* proc_current() */
*/
DEFINE_TIMER_ISR
{
- SCHEDULER_IRQ_ENTRY;
-
/*
* With the Metrowerks compiler, the only way to force the compiler generate
* an interrupt service routine is to put a pragma directive within the function
* to ensure that IRQ is generated by timer source.
*/
if (!timer_hw_triggered())
- SCHEDULER_IRQ_EXIT;
+ return;
TIMER_STROBE_ON;
#endif /* CONFIG_TIMER_DISABLE_EVENTS */
TIMER_STROBE_OFF;
-
- SCHEDULER_IRQ_EXIT;
}
MOD_DEFINE(timer)