spin-wait based kernel timer (for futex() timeout) implementation

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2012-11-28 15:22:53 +09:00
parent b59e36e1a5
commit 092069fd80
6 changed files with 121 additions and 19 deletions

View File

@ -22,6 +22,9 @@
#define USE_LARGE_PAGES
#include <waitq.h>
#include <futex.h>
struct vm_range {
struct list_head list;
unsigned long start, end;
@ -52,15 +55,15 @@ struct process {
// Runqueue list entry
struct list_head sched_list;
aal_spinlock_t spin_sleep_lock;
int spin_sleep;
struct thread {
int *clear_child_tid;
unsigned long tlsblock_base, tlsblock_limit;
} thread;
};
#include <waitq.h>
#include <futex.h>
struct process_vm {
aal_atomic_t refcount;