@@ -660,7 +660,7 @@ static int acpi_processor_get_throttling_fadt(struct acpi_processor *pr)
660660
661661#ifdef CONFIG_X86
662662static int acpi_throttling_rdmsr (struct acpi_processor * pr ,
663- acpi_integer * value )
663+ u64 * value )
664664{
665665 struct cpuinfo_x86 * c ;
666666 u64 msr_high , msr_low ;
@@ -681,13 +681,13 @@ static int acpi_throttling_rdmsr(struct acpi_processor *pr,
681681 rdmsr_safe (MSR_IA32_THERM_CONTROL ,
682682 (u32 * )& msr_low , (u32 * ) & msr_high );
683683 msr = (msr_high << 32 ) | msr_low ;
684- * value = (acpi_integer ) msr ;
684+ * value = (u64 ) msr ;
685685 ret = 0 ;
686686 }
687687 return ret ;
688688}
689689
690- static int acpi_throttling_wrmsr (struct acpi_processor * pr , acpi_integer value )
690+ static int acpi_throttling_wrmsr (struct acpi_processor * pr , u64 value )
691691{
692692 struct cpuinfo_x86 * c ;
693693 unsigned int cpu ;
@@ -711,14 +711,14 @@ static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value)
711711}
712712#else
713713static int acpi_throttling_rdmsr (struct acpi_processor * pr ,
714- acpi_integer * value )
714+ u64 * value )
715715{
716716 printk (KERN_ERR PREFIX
717717 "HARDWARE addr space,NOT supported yet\n" );
718718 return -1 ;
719719}
720720
721- static int acpi_throttling_wrmsr (struct acpi_processor * pr , acpi_integer value )
721+ static int acpi_throttling_wrmsr (struct acpi_processor * pr , u64 value )
722722{
723723 printk (KERN_ERR PREFIX
724724 "HARDWARE addr space,NOT supported yet\n" );
@@ -727,7 +727,7 @@ static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value)
727727#endif
728728
729729static int acpi_read_throttling_status (struct acpi_processor * pr ,
730- acpi_integer * value )
730+ u64 * value )
731731{
732732 u32 bit_width , bit_offset ;
733733 u64 ptc_value ;
@@ -746,7 +746,7 @@ static int acpi_read_throttling_status(struct acpi_processor *pr,
746746 address , (u32 * ) & ptc_value ,
747747 (u32 ) (bit_width + bit_offset ));
748748 ptc_mask = (1 << bit_width ) - 1 ;
749- * value = (acpi_integer ) ((ptc_value >> bit_offset ) & ptc_mask );
749+ * value = (u64 ) ((ptc_value >> bit_offset ) & ptc_mask );
750750 ret = 0 ;
751751 break ;
752752 case ACPI_ADR_SPACE_FIXED_HARDWARE :
@@ -760,7 +760,7 @@ static int acpi_read_throttling_status(struct acpi_processor *pr,
760760}
761761
762762static int acpi_write_throttling_state (struct acpi_processor * pr ,
763- acpi_integer value )
763+ u64 value )
764764{
765765 u32 bit_width , bit_offset ;
766766 u64 ptc_value ;
@@ -793,7 +793,7 @@ static int acpi_write_throttling_state(struct acpi_processor *pr,
793793}
794794
795795static int acpi_get_throttling_state (struct acpi_processor * pr ,
796- acpi_integer value )
796+ u64 value )
797797{
798798 int i ;
799799
@@ -808,7 +808,7 @@ static int acpi_get_throttling_state(struct acpi_processor *pr,
808808}
809809
810810static int acpi_get_throttling_value (struct acpi_processor * pr ,
811- int state , acpi_integer * value )
811+ int state , u64 * value )
812812{
813813 int ret = -1 ;
814814
@@ -826,7 +826,7 @@ static int acpi_processor_get_throttling_ptc(struct acpi_processor *pr)
826826{
827827 int state = 0 ;
828828 int ret ;
829- acpi_integer value ;
829+ u64 value ;
830830
831831 if (!pr )
832832 return - EINVAL ;
@@ -993,7 +993,7 @@ static int acpi_processor_set_throttling_ptc(struct acpi_processor *pr,
993993 int state , bool force )
994994{
995995 int ret ;
996- acpi_integer value ;
996+ u64 value ;
997997
998998 if (!pr )
999999 return - EINVAL ;
0 commit comments