Commit 02d43b1d authored by Mathieu Desnoyers's avatar Mathieu Desnoyers Committed by Ingo Molnar

documentation: local_ops fix on_each_cpu

Impact: update code example in documentation

* Dr. David Alan Gilbert (dave@treblig.org) wrote:
[...]
>  I noticed while looking at something else that the example in
>  local_ops.txt still has the 4 operand on_each_cpu in the latest git;
>  I don't know the rest of the code around there very well so I thought
>  it best to mention it rather than post a patch.
Reported-by: default avatarDr. David Alan Gilbert <dave@treblig.org>
Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d9d060a9
...@@ -149,7 +149,7 @@ static void do_test_timer(unsigned long data) ...@@ -149,7 +149,7 @@ static void do_test_timer(unsigned long data)
int cpu; int cpu;
/* Increment the counters */ /* Increment the counters */
on_each_cpu(test_each, NULL, 0, 1); on_each_cpu(test_each, NULL, 1);
/* Read all the counters */ /* Read all the counters */
printk("Counters read from CPU %d\n", smp_processor_id()); printk("Counters read from CPU %d\n", smp_processor_id());
for_each_online_cpu(cpu) { for_each_online_cpu(cpu) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment