Linux, NT, and liblustre.
b=16450
void cfs_schedule_timeout(cfs_task_state_t state, int64_t timeout);
void cfs_schedule(void);
void cfs_pause(cfs_duration_t ticks);
+int cfs_need_resched(void);
+void cfs_cond_resched(void);
/*
* Wait Queues
}
EXPORT_SYMBOL(cfs_pause);
+int cfs_need_resched(void)
+{
+ return need_resched();
+}
+EXPORT_SYMBOL(cfs_need_resched);
+
+void cfs_cond_resched(void)
+{
+ cond_resched();
+}
+EXPORT_SYMBOL(cfs_cond_resched);
+
void cfs_init_timer(cfs_timer_t *t)
{
init_timer(t);
nanosleep(&s, NULL);
}
+int cfs_need_resched(void)
+{
+ return 0;
+}
+
+void cfs_cond_resched(void)
+{
+}
+
/*
* Timer
*/
return NT_SUCCESS(status);
}
+int cfs_need_resched(void)
+{
+ return 0;
+}
+
+void cfs_cond_resched(void)
+{
+}
+
/**
** Initialize routines
**/
Description: Liblustre build fixes.
Details : Liblustre build fixes.
+Severity : normal
+Bugzilla : 16450
+Description: libcfs: add cfs_{need,cond}_resched() interface.
+Details : libcfs: add cfs_{need,cond}_resched() definition and
+ implementations for Linux, NT, and liblustre.
+
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>