summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-10-31 16:54:14 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-02-06 18:19:23 +0100
commit6c1e875ca6f3a47b40dce715bd07fdfdb8388d55 (patch)
treeb30ab51df8df7c4ed9ef3adb68b234064816497f /drivers/cpufreq/cpufreq.c
parentUBI: use raw mtd read function in debugging code (diff)
downloadlinux-6c1e875ca6f3a47b40dce715bd07fdfdb8388d55.tar.xz
linux-6c1e875ca6f3a47b40dce715bd07fdfdb8388d55.zip
UBI: add slab cache for ubi_scan_leb objects
During scanning UBI allocates one struct ubi_scan_leb object for each PEB, so it can end up allocating thousands of them. Use slab cache to reduce memory consumption for these 48-byte objects, because currently used 'kmalloc()' ends up allocating 64 bytes per object, instead of 48. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
0 files changed, 0 insertions, 0 deletions