File opensuse152.patch of Package crystalhd
diff -Nraub crystalhd-driver.ori/crystalhd_fleafuncs.c crystalhd-driver/crystalhd_fleafuncs.c
--- crystalhd-driver.ori/crystalhd_fleafuncs.c 2010-12-07 13:18:41.000000000 -0400
+++ crystalhd-driver/crystalhd_fleafuncs.c 2020-06-03 19:49:04.133290291 -0400
@@ -509,7 +509,7 @@
/*printk("RT Power Up Flea Complete\n"); */
- rdtscll(currTick);
+ currTick = rdtsc();
hw->TickSpentInPD += (currTick - hw->TickStartInPD);
@@ -729,7 +729,7 @@
/*printk("RT Power Down Flea Complete\n"); */
/* Measure how much time we spend in idle */
- rdtscll(hw->TickStartInPD);
+ hw->TickStartInPD = rdtsc();
return;
}
@@ -2868,7 +2868,7 @@
hw->PDRatio = 0; /* NAREN - reset PD ratio to start measuring for new clip */
hw->PauseThreshold = hw->DefaultPauseThreshold;
hw->TickSpentInPD = 0;
- rdtscll(hw->TickCntDecodePU);
+ hw->TickCntDecodePU = rdtsc();
dev_dbg(dev, "[FMT CH] DoneSz:0x%x, PIB:%x %x %x %x %x %x %x %x %x %x\n",
rx_pkt->dio_req->uinfo.y_done_sz * 4,
diff -Nraub crystalhd-driver.ori/crystalhd_hw.c crystalhd-driver/crystalhd_hw.c
--- crystalhd-driver.ori/crystalhd_hw.c 2018-05-31 20:01:53.367810925 -0400
+++ crystalhd-driver/crystalhd_hw.c 2020-06-03 19:47:53.467422822 -0400
@@ -655,7 +655,7 @@
hw->PauseThreshold--;
}
else {
- rdtscll(currTick);
+ currTick = rdtsc();
temp_64 = (hw->TickSpentInPD)>>24;
TickSpentInPD_Hi = (uint32_t)(temp_64);