git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1050efb
)
fix initialization order and add proper (c)
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 25 Mar 2005 17:19:42 +0000
(17:19 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 25 Mar 2005 17:19:42 +0000
(17:19 +0000)
kernel/ckrm/ckrm_null_class.c
patch
|
blob
|
history
diff --git
a/kernel/ckrm/ckrm_null_class.c
b/kernel/ckrm/ckrm_null_class.c
index
8e47d66
..
befbbb2
100644
(file)
--- a/
kernel/ckrm/ckrm_null_class.c
+++ b/
kernel/ckrm/ckrm_null_class.c
@@
-1,6
+1,10
@@
/* kernel/ckrm/ckrm_null_class.c - NULL TaskClass controller for CKRM
*
/* kernel/ckrm/ckrm_null_class.c - NULL TaskClass controller for CKRM
*
- * Copyright (C) Marc E. Fiuczynski, Princeton University 2004
+ * Copyright (C) Haoqiang Zheng, IBM Corp. 2004
+ * (C) Hubertus Franke, IBM Corp. 2004
+ *
+ * Copyright (C) Marc E. Fiuczynski, Princeton University 2005
+ * Adapted from ckrm_cpu_class.c.
*
* 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
*
* 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
@@
-284,10
+288,12
@@
int __init init_ckrm_null_res(void)
return -ENOENT;
}
return -ENOENT;
}
+ /* Initialize default class obj before registering with core */
+ ckrm_alloc_null_class(NULL,NULL);
+
if (resid == -1) { /*not registered */
resid = ckrm_register_res_ctlr(clstype,&null_rcbs);
printk(KERN_DEBUG "........init_ckrm_null_res , resid= %d\n",resid);
if (resid == -1) { /*not registered */
resid = ckrm_register_res_ctlr(clstype,&null_rcbs);
printk(KERN_DEBUG "........init_ckrm_null_res , resid= %d\n",resid);
- ckrm_alloc_null_class(NULL,NULL);
}
return 0;
}
}
return 0;
}