Linus Torvalds writes: (Summary) It's hacky, but maybe being explicitly hacky is
good to "document" this gotcha.
good to "document" this gotcha.
And I really do agree that this special UP case is nasty nasty and much too subtle, and I hope that some day we won't care about UP at all, and maybe kill it, or maybe just make for_each_cpu() generate the extra code to have the actual same semantics as the SMP case.
the actual same semantics as the SMP case.
Linus
Linus
Linus
good to "document" this gotcha.
And I really do agree that this special UP case is nasty nasty and much too subtle, and I hope that some day we won't care about UP at all, and maybe kill it, or maybe just make for_each_cpu() generate the extra code to have the actual same semantics as the SMP case.
the actual same semantics as the SMP case.
Linus
Linus
Linus