/* Track sum of all purrs across all processors. This is used to further calculate usage values by different applications  */
static unsigned long get_purr(void)
/* Track sum of all purrs across all processors. This is used to further calculate usage values by different applications  */
static unsigned long get_purr(void)
{
	unsigned long sum_purr = 0;
	int cpu;
	for_each_possible_cpu(cpu) {
		if (firmware_has_feature(FW_FEATURE_ISERIES))
			sum_purr += lppaca[cpu].emulated_time_base;
		else {
			struct cpu_usage *cu;
			cu = &per_cpu(cpu_usage_array, cpu);
			sum_purr += cu->current_tb;
		}
	}
	return sum_purr;
}