File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1500,7 +1500,7 @@ static int ufshcd_devfreq_get_dev_status(struct device *dev,
1500
1500
scaling -> window_start_t = curr_t ;
1501
1501
scaling -> tot_busy_t = 0 ;
1502
1502
1503
- if (hba -> outstanding_reqs ) {
1503
+ if (scaling -> active_reqs ) {
1504
1504
scaling -> busy_start_t = curr_t ;
1505
1505
scaling -> is_busy_started = true;
1506
1506
} else {
@@ -2118,7 +2118,7 @@ static void ufshcd_clk_scaling_update_busy(struct ufs_hba *hba)
2118
2118
2119
2119
spin_lock_irqsave (hba -> host -> host_lock , flags );
2120
2120
hba -> clk_scaling .active_reqs -- ;
2121
- if (!hba -> outstanding_reqs && scaling -> is_busy_started ) {
2121
+ if (!scaling -> active_reqs && scaling -> is_busy_started ) {
2122
2122
scaling -> tot_busy_t += ktime_to_us (ktime_sub (ktime_get (),
2123
2123
scaling -> busy_start_t ));
2124
2124
scaling -> busy_start_t = 0 ;
You can’t perform that action at this time.
0 commit comments