On Mon, 6 Dec 2010, Balbir Singh wrote: > > Correct. We need to subtract one from that (which will eliminate the minus > > -1 that the inline this_cpu_inc_return creates). > > > > But that breaks current behaviour, we should probably initialize all > of the array to -1? Not necessary. This_cpu_inc() uses an xadd instruction which retrieves the value and then increments the memory location. Then it adds 1. The -1 eliminates that add. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>