Hi, I have split out the unrelated parts as suggested.
I did not include inlining of the cpu_number calls because I noticed there was some bug introduced when I did this. I have tested both uniprocessor and smp as described in the commit message of patch 2, which I repeated for all 3 patches. Thanks, Damien