64d20dd27a28280dffb761fc2ce931388f4a1355
[linux-2.6.git] / include / linux / ckrm_tsk.h
1 /* ckrm_tsk.h - No. of tasks resource controller for CKRM
2  *
3  * Copyright (C) Chandra Seetharaman, IBM Corp. 2003
4  * 
5  * Provides No. of tasks resource controller for CKRM
6  *
7  * Latest version, more details at http://ckrm.sf.net
8  * 
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  */
15
16 /* Changes
17  *
18  * 31 Mar 2004
19  *    Created.
20  */
21
22 #ifndef _LINUX_CKRM_TSK_H
23 #define _LINUX_CKRM_TSK_H
24
25 #include <linux/ckrm_rc.h>
26
27 #ifdef CONFIG_CKRM_RES_NUMTASKS
28
29 extern int numtasks_get_ref(void *, int);
30 extern int numtasks_get_ref_resid(void *, int, int);
31 extern void numtasks_put_ref(void *);
32
33 #else
34
35 #define numtasks_get_ref(a, b)          1
36 #define numtasks_get_ref_resid(a, b, c)         1
37 #define numtasks_put_ref(a)
38
39 #endif
40
41 #endif // _LINUX_CKRM_RES_H