From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by kanga.kvack.org (Postfix) with ESMTP id 1F8A94403D8 for ; Fri, 5 Feb 2016 04:27:04 -0500 (EST) Received: by mail-wm0-f54.google.com with SMTP id r129so17916436wmr.0 for ; Fri, 05 Feb 2016 01:27:04 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id c21si23179523wmd.111.2016.02.05.01.27.03 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Feb 2016 01:27:03 -0800 (PST) Date: Fri, 05 Feb 2016 10:26:59 +0100 Message-ID: From: Takashi Iwai Subject: Re: [PATCH 3/5] sound: query dynamic DEBUG_PAGEALLOC setting In-Reply-To: <1454565386-10489-4-git-send-email-iamjoonsoo.kim@lge.com> References: <1454565386-10489-1-git-send-email-iamjoonsoo.kim@lge.com> <1454565386-10489-4-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Joonsoo Kim Cc: Andrew Morton , Christian Borntraeger , Chris Metcalf , David Rientjes , Benjamin Herrenschmidt , linux-mm@kvack.org, Joonsoo Kim , Christoph Lameter , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, 04 Feb 2016 06:56:24 +0100, Joonsoo Kim wrote: > > We can disable debug_pagealloc processing even if the code is complied > with CONFIG_DEBUG_PAGEALLOC. This patch changes the code to query > whether it is enabled or not in runtime. > > Signed-off-by: Joonsoo Kim Acked-by: Takashi Iwai Takashi > --- > sound/drivers/pcsp/pcsp.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c > index 27e25bb..72e2d00 100644 > --- a/sound/drivers/pcsp/pcsp.c > +++ b/sound/drivers/pcsp/pcsp.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include "pcsp_input.h" > #include "pcsp.h" > > @@ -148,11 +149,11 @@ static int alsa_card_pcsp_init(struct device *dev) > return err; > } > > -#ifdef CONFIG_DEBUG_PAGEALLOC > /* Well, CONFIG_DEBUG_PAGEALLOC makes the sound horrible. Lets alert */ > - printk(KERN_WARNING "PCSP: CONFIG_DEBUG_PAGEALLOC is enabled, " > - "which may make the sound noisy.\n"); > -#endif > + if (debug_pagealloc_enabled()) { > + printk(KERN_WARNING "PCSP: CONFIG_DEBUG_PAGEALLOC is enabled, " > + "which may make the sound noisy.\n"); > + } > > return 0; > } > -- > 1.9.1 > > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org