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: Dr. David Alan Gilbert <dave@treblig.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Mathieu Desnoyers and committed by
Ingo Molnar
02d43b1d d9d060a9

+1 -1
+1 -1
Documentation/local_ops.txt
··· 149 int cpu; 150 151 /* Increment the counters */ 152 - on_each_cpu(test_each, NULL, 0, 1); 153 /* Read all the counters */ 154 printk("Counters read from CPU %d\n", smp_processor_id()); 155 for_each_online_cpu(cpu) {
··· 149 int cpu; 150 151 /* Increment the counters */ 152 + on_each_cpu(test_each, NULL, 1); 153 /* Read all the counters */ 154 printk("Counters read from CPU %d\n", smp_processor_id()); 155 for_each_online_cpu(cpu) {