hv: vpci: revert do FLR and BAR restore

Since we restore BAR values when writing Command Register if necessary. We don't
need to trap FLR and do the BAR restore then.

Tracked-On: #3475
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Li Fei1
2019-12-26 23:32:39 +08:00
committed by wenlingz
parent 6c549d48a8
commit 26670d7ab3
7 changed files with 2 additions and 71 deletions

View File

@@ -338,22 +338,3 @@ void udelay(uint32_t us)
while (rdtsc() < dest_tsc) {
}
}
/*
* @pre ms <= MAX_UINT32 / 1000U
*/
void msleep(uint32_t ms)
{
uint64_t dest_tsc, delta_tsc;
/* Calculate number of ticks to wait */
delta_tsc = us_to_ticks(ms * 1000U);
dest_tsc = rdtsc() + delta_tsc;
/* Loop until time expired */
while (rdtsc() < dest_tsc) {
if (need_reschedule(get_pcpu_id())) {
schedule();
}
}
}