summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/perfmon.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2010-10-30 21:35:58 +0200
committerTony Luck <tony.luck@intel.com>2010-12-28 14:13:36 -0800
commite21763dbce76d3a07ead438f8811b3e4bce0825b (patch)
treeb7a65c1b990a724abfd7aa7f53413de97cb2b0f6 /arch/ia64/kernel/perfmon.c
parent75c1c91cb92806f960fcd6e53d2a0c21f343081c (diff)
downloadlinux-stable-e21763dbce76d3a07ead438f8811b3e4bce0825b.tar.gz
linux-stable-e21763dbce76d3a07ead438f8811b3e4bce0825b.tar.bz2
linux-stable-e21763dbce76d3a07ead438f8811b3e4bce0825b.zip
[IA64] perfmon: Change vmalloc to vzalloc and drop memset.
vzalloc() nicely zeroes memory for us, so we don't have to do a vmalloc() and then manually memset() the returned memory when all we want is for it to be zero. Patch changes this for pfm_rvmalloc(). Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/perfmon.c')
-rw-r--r--arch/ia64/kernel/perfmon.c3
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)
unsigned long addr;
size = PAGE_ALIGN(size);
- mem = vmalloc(size);
+ mem = vzalloc(size);
if (mem) {
//printk("perfmon: CPU%d pfm_rvmalloc(%ld)=%p\n", smp_processor_id(), size, mem);
- memset(mem, 0, size);
addr = (unsigned long)mem;
while (size > 0) {
pfm_reserve_page(addr);