-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
void * arg;
} cfs_thread_context_t;
-int cfs_kernel_thread(int (*func)(void *), void *arg, int flag);
+int cfs_create_thread(int (*func)(void *), void *arg, unsigned long flag);
/*
* thread creation flags from Linux, not used in winnt
#define CLONE_SIGNAL (CLONE_SIGHAND | CLONE_THREAD)
+#define CFS_DAEMON_FLAGS (CLONE_VM|CLONE_FILES)
/*
* group_info: linux/sched.h
#define CFS_NR_CPUS (32)
#define smp_num_cpus ((CCHAR)KeNumberProcessors)
#define cfs_num_possible_cpus() smp_num_cpus
+#define cfs_num_present_cpus() smp_num_cpus
#define cfs_num_online_cpus() smp_num_cpus
#define cfs_smp_processor_id() ((USHORT)KeGetCurrentProcessorNumber())
#define smp_call_function(f, a, n, w) do {} while(0)
#define unlikely(exp) (exp)
#endif
-#define cfs_lock_kernel() do {} while(0)
-#define cfs_unlock_kernel() do {} while(0)
-
#define local_irq_save(x)
#define local_irq_restore(x)