Thread (68 messages) 68 messages, 6 authors, 2019-08-08

Re: [PATCHv5 06/37] alarmtimer: Provide get_timespec() callback

flat view

From: Thomas Gleixner <hidden>
Date: 2019-08-07 06:04:35
Also in: lkml

On Mon, 29 Jul 2019, Dmitry Safonov wrote:
quoted hunk ↗ jump to hunk
 /**
@@ -869,8 +871,10 @@ static int __init alarmtimer_init(void)
 	/* Initialize alarm bases */
 	alarm_bases[ALARM_REALTIME].base_clockid = CLOCK_REALTIME;
 	alarm_bases[ALARM_REALTIME].get_ktime = &ktime_get_real;
+	alarm_bases[ALARM_REALTIME].get_timespec = posix_get_timespec,
That's just wrong:
quoted hunk ↗ jump to hunk
 /*
  * Get monotonic time for posix timers
  */
-static int posix_get_timespec(clockid_t which_clock, struct timespec64 *tp)
+int posix_get_timespec(clockid_t which_clock, struct timespec64 *tp)
 {
 	ktime_get_ts64(tp);
 	return 0;
Using a proper function name would have avoided this.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help