On Wed, Dec 22, 2010 at 09:28:04PM -0800, Andrew Morton wrote: > On Thu, 23 Dec 2010 10:24:28 +0800 Shaohui Zheng <shaohui.zheng@xxxxxxxxxxxxxxx> wrote: > > > > > > > Why *does* it check `count' and then not use it? > > > > > > > it is a tricky thing. When I debug it under a Virtual Machine, If I do a cpu > > probe via sysfs cpu/probe interface, The function arch_cpu_probe will be called > > __three__ times, but only one call is valid, so I add a check on `count` to > > ignore the invalid calls. > > hm, why does it get called three times? Is that something which > can/should be fixed in callers rather than in the callee? It might be a bug in the caller, but just guess currently. I will investigate it. -- Thanks & Regards, Shaohui -- 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>