generic, x86: fix add iommu_num_pages helper function
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 29 Jul 2008 04:38:53 +0000 (13:38 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 29 Jul 2008 10:12:48 +0000 (12:12 +0200)
This IOMMU helper function doesn't work for some architectures:

  http://marc.info/?l=linux-kernel&m=121699304403202&w=2

It also breaks POWER and SPARC builds:

  http://marc.info/?l=linux-kernel&m=121730388001890&w=2

Currently, only x86 IOMMUs use this so let's move it to x86 for
now.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found