mmc: card: change long_sequential_test time measurements to ktime
Change time measurements in long_sequential_test from jiffies to ktime, and make the relevant change in test-iosched infrastructure. In long_sequential_test we measure throughput, and the jiffies resolution is not sensitive enough for this calculation. Change-Id: If7c9a03c687f61996609c014e056bcd7132b9012 Signed-off-by: Lee Susman <lsusman@codeaurora.org> [venkatg@codeaurora.org: Drop changes to mmc_block_test.c] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
parent
2bf9babb4d
commit
ef94ce156f
2 changed files with 4 additions and 4 deletions
|
@ -101,8 +101,8 @@ void check_test_completion(void)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
ptd->test_info.test_duration = jiffies -
|
||||
ptd->test_info.test_duration;
|
||||
ptd->test_info.test_duration = ktime_sub(ktime_get(),
|
||||
ptd->test_info.test_duration);
|
||||
|
||||
test_pr_info("%s: Test is completed, test_count=%d, reinsert_count=%d,",
|
||||
__func__, ptd->test_count, ptd->reinsert_count);
|
||||
|
@ -771,7 +771,7 @@ int test_iosched_start_test(struct test_info *t_info)
|
|||
goto error;
|
||||
}
|
||||
|
||||
ptd->test_info.test_duration = jiffies;
|
||||
ptd->test_info.test_duration = ktime_get();
|
||||
ret = run_test(ptd);
|
||||
if (ret) {
|
||||
test_pr_err("%s: failed to run the test\n", __func__);
|
||||
|
|
|
@ -143,7 +143,7 @@ struct test_info {
|
|||
check_test_result_fn *check_test_result_fn;
|
||||
post_test_fn *post_test_fn;
|
||||
get_test_case_str_fn *get_test_case_str_fn;
|
||||
unsigned long test_duration;
|
||||
ktime_t test_duration;
|
||||
get_rq_disk_fn *get_rq_disk_fn;
|
||||
void *data;
|
||||
unsigned long test_byte_count;
|
||||
|
|
Loading…
Add table
Reference in a new issue