Signed-off-by: Jens Axboe <axboe@kernel.dk>
+#ifdef ARCH_HAVE_CPU_CLOCK
static unsigned int plat_val_to_idx(unsigned long val)
{
unsigned int msb, error_bits, base, offset, idx;
static unsigned int plat_val_to_idx(unsigned long val)
{
unsigned int msb, error_bits, base, offset, idx;
static void add_stat(struct submitter *s, int clock_index, int nr)
{
static void add_stat(struct submitter *s, int clock_index, int nr)
{
{
struct submitter *s = data;
struct io_sq_ring *ring = &s->sq_ring;
{
struct submitter *s = data;
struct io_sq_ring *ring = &s->sq_ring;
- int ret, prepped, nr_batch;
-
- nr_batch = submitter_init(s);
+ int ret, prepped;
+#ifdef ARCH_HAVE_CPU_CLOCK
+ int nr_batch = submitter_init(s);
+#else
+ submitter_init(s);
+#endif