X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=Documentation%2Flocal_ops.txt;h=300da4bdfdbd703c4809bc4b3ec5433dfe634d1e;hb=ada64e4c98eb5f04a9ca223c5ff9e7ac22ce6404;hp=f4f8b1c6c8ba45ba6ec351aa92c40e798024983c;hpb=d91958815d214ea365b98cbff6215383897edcb6;p=safe%2Fjmp%2Flinux-2.6 diff --git a/Documentation/local_ops.txt b/Documentation/local_ops.txt index f4f8b1c..300da4b 100644 --- a/Documentation/local_ops.txt +++ b/Documentation/local_ops.txt @@ -34,7 +34,7 @@ out of order wrt other memory writes by the owner CPU. It can be done by slightly modifying the standard atomic operations : only their UP variant must be kept. It typically means removing LOCK prefix (on -i386 and x86_64) and any SMP sychronization barrier. If the architecture does +i386 and x86_64) and any SMP synchronization barrier. If the architecture does not have a different behavior between SMP and UP, including asm-generic/local.h in your architecture's local.h is sufficient. @@ -149,7 +149,7 @@ static void do_test_timer(unsigned long data) int cpu; /* Increment the counters */ - on_each_cpu(test_each, NULL, 0, 1); + on_each_cpu(test_each, NULL, 1); /* Read all the counters */ printk("Counters read from CPU %d\n", smp_processor_id()); for_each_online_cpu(cpu) {