예제 #1
0
static 
void calc_hwt_expiry(struct hwt_info *hwt, struct u64_val *hwt_current, 
                     struct u64_val *sw_interval, struct u64_val *hwt_expires)
{
        hwt_expires->hi_32 = hwt_get_rollovers(hwt);

        hwt_is_64bits(hwt)? 
                calc_hwt_expiry_u64(hwt_current, sw_interval, hwt_expires) :
                calc_hwt_expiry_u32(hwt_current, sw_interval, hwt_expires);
        return;
}
예제 #2
0
static void calc_hwt_expiry(struct hwt_info *hwt,
                           struct u64_val  *hwt_current, 
                           struct u64_val  *sw_interval,
                           struct u64_val  *hwt_expires)
{
        hwt_expires->hi_32 = hwt_get_rollovers(hwt);

        hwt_has_abs_time(hwt)?
                calc_hwt_expiry_secs(hwt, hwt_current, sw_interval,
                                     hwt_expires):
                calc_hwt_expiry_tick(hwt, hwt_current, sw_interval,
                                     hwt_expires);

        return;
}