From eebbbf4494ca22dac1ca30cdb4ba9c3544de2dfe Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 21 Sep 2008 16:53:50 +0000 Subject: [PATCH] Reduced the minimum timeout enforced by apic_set_hardware_timer() from 1 ms to 1 us. The long minimum timeout seriously screwed profiling, since by default it works with 1 ms ticks, stopping the timer when the thread is unscheduled and restarting it with the remaining time when it is scheduled again. I could also imagine that this had a negative effect on latencies and the precision of thread wakeup times. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27672 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/timers/x86_apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/timers/x86_apic.c b/src/system/kernel/arch/x86/timers/x86_apic.c index 513319cbc8..a457a96eb9 100644 --- a/src/system/kernel/arch/x86/timers/x86_apic.c +++ b/src/system/kernel/arch/x86/timers/x86_apic.c @@ -65,7 +65,7 @@ apic_timer_interrupt(void *data) } -#define MIN_TIMEOUT 1000 +#define MIN_TIMEOUT 1 static status_t apic_set_hardware_timer(bigtime_t relativeTimeout)