CKRM numtasks resource controller
PATCH 4/6 CKRM numtasks resource controller
include/linux/ckrm_tsk.h new file +41 -0
@@ -0,0 +1,41 @@ +/* ckrm_tsk.h - No. of tasks resource controller for CKRM +* +* Copyright (C) Chandra Seetharaman, IBM Corp. 2003 +* +* Provides No. of tasks resource controller for CKRM +* +* Latest version, more details at http://ckrm.sf.net +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +*/ + +/* Changes +* +* 31 Mar 2004 +* Created. +*/ + +#ifndef _LINUX_CKRM_TSK_H +#define _LINUX_CKRM_TSK_H + +#include <linux/ckrm_rc.h> + +#ifdef CONFIG_CKRM_RES_NUMTASKS + +extern int numtasks_get_ref (void *,int ); +extern int numtasks_get_ref_resid (void *,int ,int ); +extern void numtasks_put_ref (void *); + +#else + +#define numtasks_get_ref (a, b) 1 +#define numtasks_get_ref_resid (a, b, c) 1 +#define numtasks_put_ref (a) + +#endif + +#endif // _LINUX_CKRM_RES_H
kernel/ckrm/ckrm_tasks.c new file +509 -0
509 lines not on this page · raw message