Fix for the fix. The previous commit actually broke initalizing timers.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33222 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-09-21 10:21:00 +00:00
parent 9091ba579c
commit 249346009f

View File

@ -26,7 +26,7 @@
#include "interrupts.h"
//#define TRACE_TIMER
#define TRACE_TIMER
#ifdef TRACE_TIMER
# define TRACE(x) dprintf x
#else
@ -99,7 +99,7 @@ arch_init_timer(kernel_args *args)
state = disable_interrupts();
for (i = 0; (timer = sTimers[i]) != NULL; i++) {
if (timer->init(args) != B_OK)
if (timer->init(args) == B_OK)
break;
}