posix-timers: Make clock_getres and clock_get mandatory
authorThomas Gleixner <tglx@linutronix.de>
Wed, 2 Feb 2011 10:45:23 +0000 (11:45 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Feb 2011 14:28:15 +0000 (15:28 +0100)
commit4359ac0ace1a2a267927390ad27f781a2f8e0ab8
tree01a77aa7afece2932d7838dffdc1a0aa0e8b6aac
parent42285777631aa0654fbb6442057b3e176445c6c5
posix-timers: Make clock_getres and clock_get mandatory

Richard said: "I would think that we can require k_clocks to provide
the read function. This could be checked and enforced in
register_posix_clock()."

Add checks for clock_getres and clock_get in the register function.

Suggested-by: Richard Cochran <richardcochran@gmail.com>
Cc: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/posix-timers.c