diff options
author | imp <imp@FreeBSD.org> | 2016-04-15 05:10:32 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2016-04-15 05:10:32 +0000 |
commit | 28a38a14ee9b2ba31fe760e3903519a416ec7a5a (patch) | |
tree | af92d8e2eb9c83ca9ed8a9431debff700b1e9fe5 /sys/cam | |
parent | 82307449911198c72178f5e491869a353e285837 (diff) | |
download | FreeBSD-src-28a38a14ee9b2ba31fe760e3903519a416ec7a5a.zip FreeBSD-src-28a38a14ee9b2ba31fe760e3903519a416ec7a5a.tar.gz |
Put function only used by CAM_NETFLIX_IOSCHED under that ifdef.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_iosched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c index b26eeac..8e78663 100644 --- a/sys/cam/cam_iosched.c +++ b/sys/cam/cam_iosched.c @@ -625,9 +625,11 @@ cam_iosched_cl_maybe_steer(struct control_loop *clp) /* Periph drivers set these flags to indicate work */ #define CAM_IOSCHED_FLAG_WORK_FLAGS ((0xffffu) << 16) +#ifdef CAM_NETFLIX_IOSCHED static void cam_iosched_io_metric_update(struct cam_iosched_softc *isc, sbintime_t sim_latency, int cmd, size_t size); +#endif static inline int cam_iosched_has_flagged_work(struct cam_iosched_softc *isc) @@ -1522,6 +1524,7 @@ cam_iosched_update(struct iop_stats *iop, sbintime_t sim_latency) iop->sd = (int64_t)var < 0 ? 0 : isqrt64(var); } +#ifdef CAM_NETFLIX_IOSCHED static void cam_iosched_io_metric_update(struct cam_iosched_softc *isc, sbintime_t sim_latency, int cmd, size_t size) @@ -1541,6 +1544,7 @@ cam_iosched_io_metric_update(struct cam_iosched_softc *isc, break; } } +#endif #ifdef DDB static int biolen(struct bio_queue_head *bq) |