|
@@ -224,7 +224,7 @@ static int alloc_pebs_buffer(int cpu)
|
|
|
if (!x86_pmu.pebs)
|
|
|
return 0;
|
|
|
|
|
|
- buffer = kmalloc_node(PEBS_BUFFER_SIZE, GFP_KERNEL | __GFP_ZERO, node);
|
|
|
+ buffer = kzalloc_node(PEBS_BUFFER_SIZE, GFP_KERNEL, node);
|
|
|
if (unlikely(!buffer))
|
|
|
return -ENOMEM;
|
|
|
|
|
@@ -262,7 +262,7 @@ static int alloc_bts_buffer(int cpu)
|
|
|
if (!x86_pmu.bts)
|
|
|
return 0;
|
|
|
|
|
|
- buffer = kmalloc_node(BTS_BUFFER_SIZE, GFP_KERNEL | __GFP_ZERO, node);
|
|
|
+ buffer = kzalloc_node(BTS_BUFFER_SIZE, GFP_KERNEL, node);
|
|
|
if (unlikely(!buffer))
|
|
|
return -ENOMEM;
|
|
|
|
|
@@ -295,7 +295,7 @@ static int alloc_ds_buffer(int cpu)
|
|
|
int node = cpu_to_node(cpu);
|
|
|
struct debug_store *ds;
|
|
|
|
|
|
- ds = kmalloc_node(sizeof(*ds), GFP_KERNEL | __GFP_ZERO, node);
|
|
|
+ ds = kzalloc_node(sizeof(*ds), GFP_KERNEL, node);
|
|
|
if (unlikely(!ds))
|
|
|
return -ENOMEM;
|
|
|
|