[PATCH 2/2] cpustat: convert to atomic operations