Merge branch 'akpm' (patches from Andrew)
[linux-2.6-microblaze.git] / tools / perf / builtin-c2c.c
index a812f32..a192014 100644 (file)
@@ -139,11 +139,11 @@ static void *c2c_he_zalloc(size_t size)
        if (!c2c_he)
                return NULL;
 
-       c2c_he->cpuset = bitmap_alloc(c2c.cpus_cnt);
+       c2c_he->cpuset = bitmap_zalloc(c2c.cpus_cnt);
        if (!c2c_he->cpuset)
                return NULL;
 
-       c2c_he->nodeset = bitmap_alloc(c2c.nodes_cnt);
+       c2c_he->nodeset = bitmap_zalloc(c2c.nodes_cnt);
        if (!c2c_he->nodeset)
                return NULL;
 
@@ -2047,7 +2047,7 @@ static int setup_nodes(struct perf_session *session)
                struct perf_cpu_map *map = n[node].map;
                unsigned long *set;
 
-               set = bitmap_alloc(c2c.cpus_cnt);
+               set = bitmap_zalloc(c2c.cpus_cnt);
                if (!set)
                        return -ENOMEM;