diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-14 12:51:03 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-14 12:51:03 +0000 |
commit | a577023c8a7e4d47643aa89117d98d958dfb343f (patch) | |
tree | 0598d298cecf31925859fdb8646b4d690b20e42b /linux/drivers/media/video/w9968cf.h | |
parent | 48592db52742b5ad934b4f7c97e0dd6d90d8478b (diff) | |
download | mediapointer-dvb-s2-a577023c8a7e4d47643aa89117d98d958dfb343f.tar.gz mediapointer-dvb-s2-a577023c8a7e4d47643aa89117d98d958dfb343f.tar.bz2 |
zr36067: Rework device memory allocation
From: Jean Delvare <khali@linux-fr.org>
Allocate zoran devices dynamically. Currently, the zr36067 driver
stores the device structures in a global array, with room for 4
devices. This makes the bss section very large (90 kB!), and given
that most users, I suspect, have only one zoran device, this is a
waste of kernel memory. Allocating the memory dynamically lets us use
only the amount of memory we need.
Before:
text data bss dec hex filename
64754 9230 90224 164208 28170 drivers/media/video/zr36067.o
After:
text data bss dec hex filename
64866 9230 112 74208 121e0 drivers/media/video/zr36067.o
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Ronald Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/w9968cf.h')
0 files changed, 0 insertions, 0 deletions