X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.c;h=873fb8e3adca7b1df2d73acd37dbf0764b74e451;hp=144eaf6e21a670d1243a07d00689cf6a3fbd1900;hb=6d5a56308a3a833b08ae0e3692b794fb6122ea60;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf diff --git a/sched.c b/sched.c index 144eaf6e..873fb8e3 100644 --- a/sched.c +++ b/sched.c @@ -1,12 +1,15 @@ /* - * Copyright (C) 2006-2007 Andre Noll + * Copyright (C) 2006-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file sched.c paraslash's scheduling functions */ +#include /* readdir() */ +#include #include + #include "para.h" #include "ipc.h" #include "fd.h" @@ -65,7 +68,7 @@ static void sched_post_select(struct sched *s) * * \sa task, now. */ -int sched(struct sched *s) +int schedule(struct sched *s) { if (!initialized) return -E_NOT_INITIALIZED; @@ -92,7 +95,7 @@ again: */ static void init_sched(void) { - PARA_INFO_LOG("%s", "initializing scheduler\n"); + PARA_INFO_LOG("initializing scheduler\n"); INIT_LIST_HEAD(&pre_select_list); INIT_LIST_HEAD(&post_select_list); initialized = 1; @@ -145,7 +148,7 @@ void unregister_task(struct task *t) /** * unregister all tasks * - * This will cause \a sched() to return immediately because both the + * This will cause \a schedule() to return immediately because both the * \a pre_select_list and the \a post_select_list are empty. */ void sched_shutdown(void)