From 5540f9b08a2b997aaa4bfbe3aa8bbaa571945eaa Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 6 Jun 2013 09:49:01 +0900 Subject: [PATCH] fix PREEMPTION_USEC --- ChangeLog | 4 ++++ chopstx.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 51915cc..44eb4c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-06-06 Niibe Yutaka + + * chopstx.c (PREEMPTION_USEC): Fix. + 2013-06-05 Niibe Yutaka * chopstx.c (sched, preempt, svc, chx_timer_expired, chx_exit) diff --git a/chopstx.c b/chopstx.c index 486adc0..fe7c366 100644 --- a/chopstx.c +++ b/chopstx.c @@ -89,7 +89,7 @@ chx_fatal (uint32_t err_code) struct chx_thread *running; /* For round robin scheduling. */ -#define PREEMPTION_USEC (1000*MHZ) /* 1ms */ +#define PREEMPTION_USEC 1000 /* 1ms */ /* Double linked list operations. */ struct chx_dll {