x86/asm/tsc: Replace rdtscll() with native_read_tsc()
[firefly-linux-kernel-4.4.55.git] / drivers / thermal / intel_powerclamp.c
index 5820e851392798e9d550241dafc8a00ec76898e3..ab13448defcfd4925c38ab936d4368c1ab629faf 100644 (file)
@@ -340,7 +340,7 @@ static bool powerclamp_adjust_controls(unsigned int target_ratio,
 
        /* check result for the last window */
        msr_now = pkg_state_counter();
-       rdtscll(tsc_now);
+       tsc_now = native_read_tsc();
 
        /* calculate pkg cstate vs tsc ratio */
        if (!msr_last || !tsc_last)
@@ -482,7 +482,7 @@ static void poll_pkg_cstate(struct work_struct *dummy)
        u64 val64;
 
        msr_now = pkg_state_counter();
-       rdtscll(tsc_now);
+       tsc_now = native_read_tsc();
        jiffies_now = jiffies;
 
        /* calculate pkg cstate vs tsc ratio */