Commit Graph

3 Commits (f08d264e1d23d83554352e097ec17535d06f7725)

Author SHA1 Message Date
Richard Cochran d7bcdca7a9 Clamp maximum adjustment to numerical limit.
On 32 bit platforms, a PHC driver might allow a larger adjustment than
can fit into the 'long' type used in the clock_adjtime interface. This
patch fixes the issue by using the smaller of the two maxima.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-05-05 12:49:45 +02:00
Richard Cochran 5b8fa684ae phc: Add a method to query the maximum adjustment.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2011-11-12 18:58:59 +01:00
Richard Cochran 11e0446c0e Add code to open and close PHC devices.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2011-11-01 18:00:16 +01:00