|
@@ -596,11 +596,10 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg,
|
|
break;
|
|
break;
|
|
case HPET_INFO:
|
|
case HPET_INFO:
|
|
{
|
|
{
|
|
|
|
+ memset(info, 0, sizeof(*info));
|
|
if (devp->hd_ireqfreq)
|
|
if (devp->hd_ireqfreq)
|
|
info->hi_ireqfreq =
|
|
info->hi_ireqfreq =
|
|
hpet_time_div(hpetp, devp->hd_ireqfreq);
|
|
hpet_time_div(hpetp, devp->hd_ireqfreq);
|
|
- else
|
|
|
|
- info->hi_ireqfreq = 0;
|
|
|
|
info->hi_flags =
|
|
info->hi_flags =
|
|
readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK;
|
|
readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK;
|
|
info->hi_hpet = hpetp->hp_which;
|
|
info->hi_hpet = hpetp->hp_which;
|