Lines 533-539
cam_iosched_ticker(void *arg)
Link Here
|
533 |
sbintime_t now, delta; |
533 |
sbintime_t now, delta; |
534 |
int pending; |
534 |
int pending; |
535 |
|
535 |
|
536 |
callout_reset(&isc->ticker, hz / isc->quanta - 1, cam_iosched_ticker, isc); |
536 |
callout_reset(&isc->ticker, hz / isc->quanta, cam_iosched_ticker, isc); |
537 |
|
537 |
|
538 |
now = sbinuptime(); |
538 |
now = sbinuptime(); |
539 |
delta = now - isc->last_time; |
539 |
delta = now - isc->last_time; |
Lines 795-801
cam_iosched_limiter_sysctl(SYSCTL_HANDLER_ARGS)
Link Here
|
795 |
return error; |
795 |
return error; |
796 |
} |
796 |
} |
797 |
/* Note: disk load averate requires ticker to be always running */ |
797 |
/* Note: disk load averate requires ticker to be always running */ |
798 |
callout_reset(&isc->ticker, hz / isc->quanta - 1, cam_iosched_ticker, isc); |
798 |
callout_reset(&isc->ticker, hz / isc->quanta, cam_iosched_ticker, isc); |
799 |
isc->flags |= CAM_IOSCHED_FLAG_CALLOUT_ACTIVE; |
799 |
isc->flags |= CAM_IOSCHED_FLAG_CALLOUT_ACTIVE; |
800 |
|
800 |
|
801 |
cam_periph_unlock(isc->periph); |
801 |
cam_periph_unlock(isc->periph); |
Lines 1031-1037
cam_iosched_init(struct cam_iosched_softc **iscp, struct cam_periph *periph)
Link Here
|
1031 |
callout_init_mtx(&(*iscp)->ticker, cam_periph_mtx(periph), 0); |
1031 |
callout_init_mtx(&(*iscp)->ticker, cam_periph_mtx(periph), 0); |
1032 |
(*iscp)->periph = periph; |
1032 |
(*iscp)->periph = periph; |
1033 |
cam_iosched_cl_init(&(*iscp)->cl, *iscp); |
1033 |
cam_iosched_cl_init(&(*iscp)->cl, *iscp); |
1034 |
callout_reset(&(*iscp)->ticker, hz / (*iscp)->quanta - 1, cam_iosched_ticker, *iscp); |
1034 |
callout_reset(&(*iscp)->ticker, hz / (*iscp)->quanta, cam_iosched_ticker, *iscp); |
1035 |
(*iscp)->flags |= CAM_IOSCHED_FLAG_CALLOUT_ACTIVE; |
1035 |
(*iscp)->flags |= CAM_IOSCHED_FLAG_CALLOUT_ACTIVE; |
1036 |
} |
1036 |
} |
1037 |
#endif |
1037 |
#endif |
1038 |
- |
|
|