#include "postime/postime_data.h" #include "postime/postime.h" #if defined(CLOOK) #include "_cscan.h" struct cscan_queue q; #define sched_init() cscan_init(&q) #define sched_enqueue(bp) cscan_enqueue(&q,bp) #define sched_select() cscan_select(&q) #define sched_dequeue(bp) cscan_dequeue(&q,bp) #define sched_iodone(bp) do { } while(0) #define sched_foreach(bp) cscan_foreach(&q,bp) #elif defined(SPTF) #include "_sptf.h" struct sptf_queue q; #define sched_init() sptf_init(&q) #define sched_enqueue(bp) sptf_enqueue(&q,bp) #define sched_select() sptf_select(&q) #define sched_dequeue(bp) sptf_dequeue(&q,bp) #define sched_iodone(bp) sptf_iodone(&q,bp) #define sched_foreach(bp) sptf_foreach(&q,bp) #define sched_dist(bp) sptf_dist(&q,bp) #elif defined(SSTF) #include "_sstf.h" struct sstf_queue q; #define sched_init() sstf_init(&q) #define sched_enqueue(bp) sstf_enqueue(&q,bp) #define sched_select() sstf_select(&q) #define sched_dequeue(bp) sstf_dequeue(&q,bp) #define sched_iodone(bp) sstf_iodone(&q,bp) #define sched_foreach(bp) sstf_foreach(&q,bp) #endif #define sched_evaluate seek_evaluate #define sched_collect_stats seek_collect_stats #include "seek_nwcs.h"