mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Replace "vmalloc_node" with "vmalloc" for no-mmu architectures in oprofile driver
@ 2006-02-28  3:20 Luke Yang
  2006-02-28  3:33 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Luke Yang @ 2006-02-28  3:20 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel

Hi,

  This is a fix to the oprofile driver. It calls "vmalloc_node()" but
no-mmu CPUs do not have that function. "vmalloc()" is OK for no-mmu
CPUs.

Signed-off-by: Luke Yang <luke.adi@gmail.com>

Index: linux-2.6/drivers/oprofile/cpu_buffer.c
===================================================================
--- linux-2.6/drivers/oprofile/cpu_buffer.c     2006-02-16
16:16:35.000000000 +0800
+++ linux-2.6/drivers/oprofile/cpu_buffer.c     2006-02-16
16:20:58.000000000 +0800
@@ -51,9 +51,13 @@

        for_each_online_cpu(i) {
                struct oprofile_cpu_buffer * b = &cpu_buffer[i];
-
+
+#ifdef MMU
                b->buffer = vmalloc_node(sizeof(struct op_sample) * buffer_size,
                        cpu_to_node(i));
+#else
+               b->buffer = vmalloc(sizeof(struct op_sample) * buffer_size);
+#endif
                if (!b->buffer)
                        goto fail;

--
Best regards,
Luke Yang
magic.yyang@gmail.com; luke.adi@gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-28  3:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-28  3:20 [PATCH] Replace "vmalloc_node" with "vmalloc" for no-mmu architectures in oprofile driver Luke Yang
2006-02-28  3:33 ` Andrew Morton
2006-02-28  3:45   ` Luke Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®