Skip to content

Commit

Permalink
kdate_get not recognized by Redhat 5.11 (#23)
Browse files Browse the repository at this point in the history
This returns ns not ms, but the result appears to be the same.
  • Loading branch information
Mark McCurdy authored and jtsylve committed Dec 23, 2016
1 parent 4eb8bb2 commit 7b92b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static void write_range(struct resource * res) {
DBG("Writing range %llx - %llx.", res->start, res->end);

for (i = res->start; i <= res->end; i += is) {
start = ktime_get();
start = ktime_get_real();

p = pfn_to_page((i) >> PAGE_SHIFT);

Expand All @@ -218,7 +218,7 @@ static void write_range(struct resource * res) {
}
}

end = ktime_get();
end = ktime_get_real();

if (timeout > 0 && ktime_to_ms(ktime_sub(end, start)) > timeout) {
DBG("Reading is too slow. Skipping Range...");
Expand Down

0 comments on commit 7b92b93

Please sign in to comment.