commit | 7e4bbaf0bf13c33be275e8a17997597dfd0ed03a | [log] [tgz] |
---|---|---|
author | Gavin Shan <shangw@linux.vnet.ibm.com> | Fri Sep 07 22:44:03 2012 +0000 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Mon Sep 10 09:35:28 2012 +1000 |
tree | 73fce92616db41e744b45a817da40d727b79ea1c | |
parent | 35e5cfe27e674e4580408b34e7fc97e18460e048 [diff] |
powerpc/eeh: Use slab to allocate eeh devices The EEH initialization functions have been postponed until slab/slub are ready. So we use slab/slub to allocate the memory chunks for newly creatd EEH devices. That would save lots of memory. The patch also does cleanup to replace "kmalloc" with "kzalloc" so that we needn't clear the allocated memory chunk explicitly. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>