bfin: remove inline keyword
[xenomai-head.git] / ksrc / nucleus / sched-idle.c
blob124cd676dda8d520e42528b224d110def4b098ca
1 /*!\file sched-idle.c
2 * \author Philippe Gerum
3 * \brief Idle scheduling class implementation (i.e. Linux placeholder).
5 * Copyright (C) 2008 Philippe Gerum <rpm@xenomai.org>.
7 * Xenomai is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License,
10 * or (at your option) any later version.
12 * Xenomai is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Xenomai; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA.
22 * \ingroup sched
25 #include <nucleus/sched.h>
27 static struct xnthread *xnsched_idle_pick(struct xnsched *sched)
29 return &sched->rootcb;
32 void xnsched_idle_setparam(struct xnthread *thread,
33 const union xnsched_policy_param *p)
35 __xnsched_idle_setparam(thread, p);
38 void xnsched_idle_getparam(struct xnthread *thread,
39 union xnsched_policy_param *p)
41 __xnsched_idle_getparam(thread, p);
44 void xnsched_idle_trackprio(struct xnthread *thread,
45 const union xnsched_policy_param *p)
47 __xnsched_rt_trackprio(thread, p);
50 struct xnsched_class xnsched_class_idle = {
51 .sched_init = NULL,
52 .sched_enqueue = NULL,
53 .sched_dequeue = NULL,
54 .sched_requeue = NULL,
55 .sched_tick = NULL,
56 .sched_rotate = NULL,
57 .sched_forget = NULL,
58 .sched_declare = NULL,
59 .sched_pick = xnsched_idle_pick,
60 .sched_setparam = xnsched_idle_setparam,
61 .sched_getparam = xnsched_idle_getparam,
62 .sched_trackprio = xnsched_idle_trackprio,
63 .weight = XNSCHED_CLASS_WEIGHT(0),
64 .name = "idle"