From: Omar Ramirez Luna <omar.ramirez@ti.com>
To: Ameya Palande <ameya.palande@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] DSPBRIDGE: Get rid of memset() from MEM_Calloc()
Date: Tue, 23 Feb 2010 10:23:13 -0600 [thread overview]
Message-ID: <4B8400F1.9010403@ti.com> (raw)
In-Reply-To: <b487eb065323f57efcaea92d30f8cca5041589ee.1266334736.git.ameya.palande@nokia.com>
On 2/16/2010 9:40 AM, Ameya Palande wrote:
> Signed-off-by: Ameya Palande<ameya.palande@nokia.com>
> ---
> drivers/dsp/bridge/services/mem.c | 11 ++++-------
> 1 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/dsp/bridge/services/mem.c b/drivers/dsp/bridge/services/mem.c
> index 614396e..2501eee 100644
> --- a/drivers/dsp/bridge/services/mem.c
> +++ b/drivers/dsp/bridge/services/mem.c
> @@ -227,16 +227,13 @@ void *MEM_Calloc(u32 cBytes, enum MEM_POOLATTRS type)
> case MEM_NONPAGED:
> /* If non-paged memory required, see note at top of file. */
> case MEM_PAGED:
> - pMem = kmalloc(cBytes,
> + pMem = kzalloc(cBytes,
> (in_atomic()) ? GFP_ATOMIC : GFP_KERNEL);
> - if (pMem)
> - memset(pMem, 0, cBytes);
> -
> break;
> case MEM_LARGEVIRTMEM:
> - pMem = vmalloc(cBytes);
> - if (pMem)
> - memset(pMem, 0, cBytes);
> + pMem = __vmalloc(cBytes,
> + GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO,
> + PAGE_KERNEL);
> break;
> default:
> GT_1trace(MEM_debugMask, GT_6CLASS,
Acked-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Pushed to dspbridge
- omar
prev parent reply other threads:[~2010-02-23 16:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-16 15:40 [PATCH] DSPBRIDGE: Get rid of memset() from MEM_Calloc() Ameya Palande
2010-02-23 16:23 ` Omar Ramirez Luna [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B8400F1.9010403@ti.com \
--to=omar.ramirez@ti.com \
--cc=ameya.palande@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox