original_kernel/arch/powerpc/perf
Himangi Saraogi d658972284 powerpc/perf/hv-24x7: Use kmem_cache_free
Free memory allocated using kmem_cache_zalloc using kmem_cache_free
rather than kfree.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@@
expression x,E,c;
@@

 x = \(kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\)(c,...)
 ... when != x = E
     when != &x
?-kfree(x)
+kmem_cache_free(c,x)
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-08-13 15:14:04 +10:00
..
Makefile
bhrb.S
callchain.c
core-book3s.c powerpc/perf: Add per-event excludes on Power8 2014-07-28 14:30:58 +10:00
core-fsl-emb.c
e500-pmu.c
e6500-pmu.c
hv-24x7-catalog.h
hv-24x7.c powerpc/perf/hv-24x7: Use kmem_cache_free 2014-08-13 15:14:04 +10:00
hv-24x7.h
hv-common.c
hv-common.h
hv-gpci.c
hv-gpci.h
mpc7450-pmu.c
power4-pmu.c
power5+-pmu.c
power5-pmu.c
power6-pmu.c
power7-events-list.h
power7-pmu.c
power8-pmu.c powerpc/perf: Add per-event excludes on Power8 2014-07-28 14:30:58 +10:00
ppc970-pmu.c