/* convert cnt from cputimer cnt to hrtimer cnt  */
static unsigned long _cnt_convert(unsigned long cnt)
/* convert cnt from cputimer cnt to hrtimer cnt  */
static unsigned long _cnt_convert(unsigned long cnt)
{
    unsigned long rtn   = 0;
    unsigned long count = cnt - rt_ktime_cputimer_getcnt();
    if (count > (_HRTIMER_MAX_CNT / 2))
        return 0;
    rtn = (count * rt_ktime_cputimer_getres()) / rt_ktime_hrtimer_getres();
    return rtn == 0 ? 1 : rtn;
}