x86/asm/tsc: Rename native_read_tsc() to rdtsc()
[firefly-linux-kernel-4.4.55.git] / drivers / thermal / intel_powerclamp.c
index ab13448defcfd4925c38ab936d4368c1ab629faf..2ac0c704bcb85b5884365d54485c57383952b81a 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();
-       tsc_now = native_read_tsc();
+       tsc_now = rdtsc();
 
        /* 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();
-       tsc_now = native_read_tsc();
+       tsc_now = rdtsc();
        jiffies_now = jiffies;
 
        /* calculate pkg cstate vs tsc ratio */