Searched refs:AVG_SAMPLE_SIZE (Results 1 – 2 of 2) sorted by relevance
137 for (i = 0; i < AVG_SAMPLE_SIZE; i++) in amd_pmf_get_moving_avg()141 pdev->socket_power_history_idx = (pdev->socket_power_history_idx + 1) % AVG_SAMPLE_SIZE; in amd_pmf_get_moving_avg()144 for (i = 0; i < AVG_SAMPLE_SIZE; i++) in amd_pmf_get_moving_avg()147 return total / AVG_SAMPLE_SIZE; in amd_pmf_get_moving_avg()
81 #define AVG_SAMPLE_SIZE 3 macro348 int socket_power_history[AVG_SAMPLE_SIZE];