Skip to contentSkip to conversation

hpet: remove unnecessary code from post_load callback

PATCH New Paolo Bonzini 1 participant 1 message Feb 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hpet: remove unnecessary code from post_load callback

The flags are already specified on the command line, so it is not necessary to get them back from the migration stream. They should be already equal on the source and destination machine, unless the destination machine is configured incorrectly.

---
 hw/timer/hpet.c | 5 -----
 1 file changed, 5 deletions(-)
hw/timer/hpet.c +0 -5
index 0ad5420..4aa7293 100644
@@ -266,11 +266,6 @@ static int hpet_post_load(void *opaque, int version_id)
     s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT;
     hpet_cfg.hpet[s->hpet_id].event_timer_block_id = (uint32_t)s->capability;
 
-    /* Derive HPET_MSI_SUPPORT from the capability of the first timer. */
-    s->flags &= ~(1 << HPET_MSI_SUPPORT);
-    if (s->timer[0].config & HPET_TN_FSB_CAP) {
-        s->flags |= 1 << HPET_MSI_SUPPORT;
-    }
     return 0;
 }
 
Signature · 1 line
2.5.0