[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090415090826.GA2808@lilem.mirepesht>
Date: Wed, 15 Apr 2009 13:38:26 +0430
From: Ali Gholami Rudi <ali@...i.ir>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Ingo Molnar <mingo@...e.hu>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Valdis.Kletnieks@...edu, Mike Travis <travis@....com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
mm-commits@...r.kernel.org, Rusty Russell <rusty@...tcorp.com.au>,
Dave Jones <davej@...hat.com>, Len Brown <lenb@...nel.org>
Subject: Re: mmotm 2009-04-10-02-21 uploaded - forkbombed by work_for_cpu
Andrew Morton <akpm@...ux-foundation.org> wrote:
> > [ Made it use smp_call_function_many() instead of looping over cpu's
> > with smp_call_function_single() - Linus ]
>
> <stares suspiciously at smp_call_function_many()>
>
> * smp_call_function_many(): Run a function on a set of other CPUs.
>
> "other". It refuses to call the function on *this* CPU. Tricky.
>
> Does this fix it up?
>
> --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c~a
> +++ a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
> @@ -204,7 +204,10 @@ static void drv_read(struct drv_cmd *cmd
>
> static void drv_write(struct drv_cmd *cmd)
> {
> - smp_call_function_many(cmd->mask, do_drv_write, cmd, 1);
> + unsigned cpu;
> +
> + for_each_cpu(cpu, cmd->mask)
> + smp_call_function_single(cpu, do_drv_write, cmd, 1);
> }
>
> static u32 get_cur_val(const struct cpumask *mask)
> _
Yes, it does fix it.
Thanks,
Ali
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists