From: Gavin Shan Date: Fri, 7 Sep 2012 22:44:03 +0000 (+0000) Subject: powerpc/eeh: Use slab to allocate eeh devices X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~10^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e4bbaf0bf13c33be275e8a17997597dfd0ed03a;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed