| .. | .. |
|---|
| 54 | 54 | } |
|---|
| 55 | 55 | EXPORT_SYMBOL(dim_park_tired); |
|---|
| 56 | 56 | |
|---|
| 57 | | -void dim_calc_stats(struct dim_sample *start, struct dim_sample *end, |
|---|
| 57 | +bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end, |
|---|
| 58 | 58 | struct dim_stats *curr_stats) |
|---|
| 59 | 59 | { |
|---|
| 60 | 60 | /* u32 holds up to 71 minutes, should be enough */ |
|---|
| .. | .. |
|---|
| 66 | 66 | start->comp_ctr); |
|---|
| 67 | 67 | |
|---|
| 68 | 68 | if (!delta_us) |
|---|
| 69 | | - return; |
|---|
| 69 | + return false; |
|---|
| 70 | 70 | |
|---|
| 71 | 71 | curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); |
|---|
| 72 | 72 | curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); |
|---|
| .. | .. |
|---|
| 79 | 79 | else |
|---|
| 80 | 80 | curr_stats->cpe_ratio = 0; |
|---|
| 81 | 81 | |
|---|
| 82 | + return true; |
|---|
| 82 | 83 | } |
|---|
| 83 | 84 | EXPORT_SYMBOL(dim_calc_stats); |
|---|