]> Pileus Git - ~andy/linux/commit
m68k/sun3: Dynamically allocate the table to track IOMMU use
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 25 Jun 2013 18:33:44 +0000 (20:33 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 26 Nov 2013 10:08:59 +0000 (11:08 +0100)
commit7b3e8de9b3e9c0ffd5cb1600e6075bede4272868
treefda9c0cccaaa02498e675a1b8188a50a10ee604c
parenta4df02a217e9787a4b967197d9d9030c3e3c1088
m68k/sun3: Dynamically allocate the table to track IOMMU use

As Sun 3 kernels cannot be multi-platform due to the different Sun 3 MMU
type, it made sense to statically allocate the table to track IOMMU use.

However, Sun 3x kernels can be multi-platform. Furthermore, Sun 3x uses
a larger table than Sun 3 (8192 bytes instead of 512 bytes).

Hence switch to dynamic allocation of this table using the bootmem
allocator to avoid wasting 8192 bytes when not running on a Sun 3x.
As this allocator returns zeroed memory, there's no need to explicitly
initialize the table to zeroes.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/sun3/sun3dvma.c