History

ktime: Sanitize ktime_to_us/ms conversion

With the plain nanoseconds based ktime_t we can simply use ktime_divns() instead of going through loops and hoops of timespec/timeval conversion.

Thomas Gleixner committed 12 years ago

Commit 166afb61 parent 24e4a8c3 files · +9 −10Browse files

Showing the changes to kernel/time/hrtimer.c (1 of 3 files). Show all

Unified · Split

kernel/time/hrtimer.c+1−0
@@ -280,6 +280,7 @@ u64 ktime_divns(const ktime_t kt, s64 div) · 279 unmodified lines
280280
281281 return dclc;
282282 }
283+EXPORT_SYMBOL_GPL(ktime_divns);
283284 #endif /* BITS_PER_LONG >= 64 */
284285
285286 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t