thp: fix PARAVIRT x86 32bit noPAE
commitcacf061c5e42a040200463afccd9178ace680322
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 25 Jan 2011 23:07:09 +0000 (25 15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 26 Jan 2011 00:49:57 +0000 (26 10:49 +1000)
treee42cf6da9b8f553ae9a5d0e0f6eb959c141c338e
parent6663050edd9c2e8b1e1f55c09459144d84c045f0
thp: fix PARAVIRT x86 32bit noPAE

This fixes TRANSPARENT_HUGEPAGE=y with PARAVIRT=y and HIGHMEM64=n.

The #ifdef that this patch removes was erratically introduced to fix a
build error for noPAE (where pmd.pmd doesn't exist).  So then the kernel
built but it failed at runtime because set_pmd_at was a noop.  This will
correct it by enabling set_pmd_at for noPAE mode too.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reported-by: werner <w.landgraf@ru.ru>
Reported-by: Minchan Kim <minchan.kim@gmail.com>
Tested-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/paravirt.h