Lines Matching refs:status
71 static void _normalize_load(struct devfreq_dev_status *status)
73 if (status->total_time > 0xfffff) {
74 status->total_time >>= 10;
75 status->busy_time >>= 10;
78 status->busy_time <<= 10;
79 status->busy_time /= status->total_time ? : 1;
81 status->busy_time = status->busy_time ? : 1;
82 status->total_time = 1024;
91 struct devfreq_dev_status status;
97 status = devfreq->last_status;
100 freq = DIV_ROUND_UP(status.current_frequency, HZ_PER_KHZ);
101 _normalize_load(&status);
109 power *= status.busy_time;