X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fwinnt%2Fwinnt-prim.h;h=988e9b5580fbac4cff619e410e53ea1ca9579556;hp=72d0acde56e083be3c1383c1c91259e8b02937c2;hb=65dc702123f91c4fb2ae25604f98e195fcc15544;hpb=0f8dca08a4f68cba82c2c822998ecc309d3b7aaf diff --git a/libcfs/include/libcfs/winnt/winnt-prim.h b/libcfs/include/libcfs/winnt/winnt-prim.h index 72d0acd..988e9b5 100644 --- a/libcfs/include/libcfs/winnt/winnt-prim.h +++ b/libcfs/include/libcfs/winnt/winnt-prim.h @@ -1,6 +1,4 @@ -/* -*- 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. @@ -461,7 +459,7 @@ typedef struct _cfs_thread_context { 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 @@ -480,6 +478,7 @@ int cfs_kernel_thread(int (*func)(void *), void *arg, int flag); #define CLONE_SIGNAL (CLONE_SIGHAND | CLONE_THREAD) +#define CFS_DAEMON_FLAGS (CLONE_VM|CLONE_FILES) /* * group_info: linux/sched.h @@ -861,6 +860,7 @@ libcfs_arch_cleanup(void); #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) @@ -900,9 +900,6 @@ libcfs_arch_cleanup(void); #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)