From: Li Zefan Date: Mon, 15 Jun 2009 02:57:28 +0000 (+0800) Subject: tracing: replace a GFP_ATOMIC with GFP_KERNEL allocation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4f2d10f479d18198ebafcb5e124cc3dd8b8817a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git tracing: replace a GFP_ATOMIC with GFP_KERNEL allocation Atomic allocation is not needed here. [ Impact: clean up of memory alloction type ] Acked-by: Frederic Weisbecker Signed-off-by: Li Zefan LKML-Reference: <4A35B898.2050607@cn.fujitsu.com> Signed-off-by: Steven Rostedt --- diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 7355a38e18be..0f57f1b443b6 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -3627,7 +3627,7 @@ tracing_stats_read(struct file *filp, char __user *ubuf, struct trace_seq *s; unsigned long cnt; - s = kmalloc(sizeof(*s), GFP_ATOMIC); + s = kmalloc(sizeof(*s), GFP_KERNEL); if (!s) return ENOMEM;