I have written a piece of software called offline scheduler(offsched). It is based on Linux ability to offload a running processor. what i do is very simple:
1. offload a processor.
2. let this processor wonder in my hook.
currently, i have written a 1-us timer. I will happy for any criticism.
It is my master work.