Skip to content
Snippets Groups Projects
Commit 945ded43 authored by Nikita Danilov's avatar Nikita Danilov
Browse files

libcfs: add cfs_{need,cond}_resched() definition and implementations for

Linux, NT, and liblustre.
b=16450
parent bcef68d9
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,8 @@
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
......
......@@ -153,6 +153,18 @@ cfs_pause(cfs_duration_t ticks)
}
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);
......
......@@ -143,6 +143,15 @@ cfs_pause(cfs_duration_t d)
nanosleep(&s, NULL);
}
int cfs_need_resched(void)
{
return 0;
}
void cfs_cond_resched(void)
{
}
/*
* Timer
*/
......
......@@ -741,6 +741,15 @@ errorout:
return NT_SUCCESS(status);
}
int cfs_need_resched(void)
{
return 0;
}
void cfs_cond_resched(void)
{
}
/**
** Initialize routines
**/
......
......@@ -1718,6 +1718,12 @@ Bugzilla : 16450
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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment