I was looking to queue Richard's ADJ_SETOFFSET patch to seeif it could be merged into -tip for 2.6.38, but on second glance I noticed the ugly local_irq_disable bits as wellas the fact that adding the offset uses a gettime/add/settimepattern which will also add a small error as the action isn'tatomic.

So I implemented a timekeeping function to add a fixed offset:timekeeping_inject_offset(), and reworked Richard's code tomake use of it.

Richard: Any objection here? Mind testing this with the restof your patch queue?

Thomas: Any comments? Does this seem reasonable for 2.6.38? Should I fold my cleanups into Richard's patch?