diff options
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/perfmon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 39e534f5a3b0..3aee09d2c2de 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -829,10 +829,9 @@ pfm_rvmalloc(unsigned long size) | |||
829 | unsigned long addr; | 829 | unsigned long addr; |
830 | 830 | ||
831 | size = PAGE_ALIGN(size); | 831 | size = PAGE_ALIGN(size); |
832 | mem = vmalloc(size); | 832 | mem = vzalloc(size); |
833 | if (mem) { | 833 | if (mem) { |
834 | //printk("perfmon: CPU%d pfm_rvmalloc(%ld)=%p\n", smp_processor_id(), size, mem); | 834 | //printk("perfmon: CPU%d pfm_rvmalloc(%ld)=%p\n", smp_processor_id(), size, mem); |
835 | memset(mem, 0, size); | ||
836 | addr = (unsigned long)mem; | 835 | addr = (unsigned long)mem; |
837 | while (size > 0) { | 836 | while (size > 0) { |
838 | pfm_reserve_page(addr); | 837 | pfm_reserve_page(addr); |