@@ -192,7 +192,7 @@ static __cpuidle void intel_idle_s2idle(struct cpuidle_device *dev,
192
192
* which is also the index into the MWAIT hint array.
193
193
* Thus C0 is a dummy.
194
194
*/
195
- static struct cpuidle_state nehalem_cstates [] = {
195
+ static struct cpuidle_state nehalem_cstates [] __initdata = {
196
196
{
197
197
.name = "C1" ,
198
198
.desc = "MWAIT 0x00" ,
@@ -229,7 +229,7 @@ static struct cpuidle_state nehalem_cstates[] = {
229
229
.enter = NULL }
230
230
};
231
231
232
- static struct cpuidle_state snb_cstates [] = {
232
+ static struct cpuidle_state snb_cstates [] __initdata = {
233
233
{
234
234
.name = "C1" ,
235
235
.desc = "MWAIT 0x00" ,
@@ -274,7 +274,7 @@ static struct cpuidle_state snb_cstates[] = {
274
274
.enter = NULL }
275
275
};
276
276
277
- static struct cpuidle_state byt_cstates [] = {
277
+ static struct cpuidle_state byt_cstates [] __initdata = {
278
278
{
279
279
.name = "C1" ,
280
280
.desc = "MWAIT 0x00" ,
@@ -319,7 +319,7 @@ static struct cpuidle_state byt_cstates[] = {
319
319
.enter = NULL }
320
320
};
321
321
322
- static struct cpuidle_state cht_cstates [] = {
322
+ static struct cpuidle_state cht_cstates [] __initdata = {
323
323
{
324
324
.name = "C1" ,
325
325
.desc = "MWAIT 0x00" ,
@@ -364,7 +364,7 @@ static struct cpuidle_state cht_cstates[] = {
364
364
.enter = NULL }
365
365
};
366
366
367
- static struct cpuidle_state ivb_cstates [] = {
367
+ static struct cpuidle_state ivb_cstates [] __initdata = {
368
368
{
369
369
.name = "C1" ,
370
370
.desc = "MWAIT 0x00" ,
@@ -409,7 +409,7 @@ static struct cpuidle_state ivb_cstates[] = {
409
409
.enter = NULL }
410
410
};
411
411
412
- static struct cpuidle_state ivt_cstates [] = {
412
+ static struct cpuidle_state ivt_cstates [] __initdata = {
413
413
{
414
414
.name = "C1" ,
415
415
.desc = "MWAIT 0x00" ,
@@ -446,7 +446,7 @@ static struct cpuidle_state ivt_cstates[] = {
446
446
.enter = NULL }
447
447
};
448
448
449
- static struct cpuidle_state ivt_cstates_4s [] = {
449
+ static struct cpuidle_state ivt_cstates_4s [] __initdata = {
450
450
{
451
451
.name = "C1" ,
452
452
.desc = "MWAIT 0x00" ,
@@ -483,7 +483,7 @@ static struct cpuidle_state ivt_cstates_4s[] = {
483
483
.enter = NULL }
484
484
};
485
485
486
- static struct cpuidle_state ivt_cstates_8s [] = {
486
+ static struct cpuidle_state ivt_cstates_8s [] __initdata = {
487
487
{
488
488
.name = "C1" ,
489
489
.desc = "MWAIT 0x00" ,
@@ -520,7 +520,7 @@ static struct cpuidle_state ivt_cstates_8s[] = {
520
520
.enter = NULL }
521
521
};
522
522
523
- static struct cpuidle_state hsw_cstates [] = {
523
+ static struct cpuidle_state hsw_cstates [] __initdata = {
524
524
{
525
525
.name = "C1" ,
526
526
.desc = "MWAIT 0x00" ,
@@ -588,7 +588,7 @@ static struct cpuidle_state hsw_cstates[] = {
588
588
{
589
589
.enter = NULL }
590
590
};
591
- static struct cpuidle_state bdw_cstates [] = {
591
+ static struct cpuidle_state bdw_cstates [] __initdata = {
592
592
{
593
593
.name = "C1" ,
594
594
.desc = "MWAIT 0x00" ,
@@ -657,7 +657,7 @@ static struct cpuidle_state bdw_cstates[] = {
657
657
.enter = NULL }
658
658
};
659
659
660
- static struct cpuidle_state skl_cstates [] = {
660
+ static struct cpuidle_state skl_cstates [] __initdata = {
661
661
{
662
662
.name = "C1" ,
663
663
.desc = "MWAIT 0x00" ,
@@ -726,7 +726,7 @@ static struct cpuidle_state skl_cstates[] = {
726
726
.enter = NULL }
727
727
};
728
728
729
- static struct cpuidle_state skx_cstates [] = {
729
+ static struct cpuidle_state skx_cstates [] __initdata = {
730
730
{
731
731
.name = "C1" ,
732
732
.desc = "MWAIT 0x00" ,
@@ -755,7 +755,7 @@ static struct cpuidle_state skx_cstates[] = {
755
755
.enter = NULL }
756
756
};
757
757
758
- static struct cpuidle_state atom_cstates [] = {
758
+ static struct cpuidle_state atom_cstates [] __initdata = {
759
759
{
760
760
.name = "C1E" ,
761
761
.desc = "MWAIT 0x00" ,
@@ -791,7 +791,7 @@ static struct cpuidle_state atom_cstates[] = {
791
791
{
792
792
.enter = NULL }
793
793
};
794
- static struct cpuidle_state tangier_cstates [] = {
794
+ static struct cpuidle_state tangier_cstates [] __initdata = {
795
795
{
796
796
.name = "C1" ,
797
797
.desc = "MWAIT 0x00" ,
@@ -835,7 +835,7 @@ static struct cpuidle_state tangier_cstates[] = {
835
835
{
836
836
.enter = NULL }
837
837
};
838
- static struct cpuidle_state avn_cstates [] = {
838
+ static struct cpuidle_state avn_cstates [] __initdata = {
839
839
{
840
840
.name = "C1" ,
841
841
.desc = "MWAIT 0x00" ,
@@ -855,7 +855,7 @@ static struct cpuidle_state avn_cstates[] = {
855
855
{
856
856
.enter = NULL }
857
857
};
858
- static struct cpuidle_state knl_cstates [] = {
858
+ static struct cpuidle_state knl_cstates [] __initdata = {
859
859
{
860
860
.name = "C1" ,
861
861
.desc = "MWAIT 0x00" ,
@@ -876,7 +876,7 @@ static struct cpuidle_state knl_cstates[] = {
876
876
.enter = NULL }
877
877
};
878
878
879
- static struct cpuidle_state bxt_cstates [] = {
879
+ static struct cpuidle_state bxt_cstates [] __initdata = {
880
880
{
881
881
.name = "C1" ,
882
882
.desc = "MWAIT 0x00" ,
@@ -937,7 +937,7 @@ static struct cpuidle_state bxt_cstates[] = {
937
937
.enter = NULL }
938
938
};
939
939
940
- static struct cpuidle_state dnv_cstates [] = {
940
+ static struct cpuidle_state dnv_cstates [] __initdata = {
941
941
{
942
942
.name = "C1" ,
943
943
.desc = "MWAIT 0x00" ,
@@ -966,116 +966,116 @@ static struct cpuidle_state dnv_cstates[] = {
966
966
.enter = NULL }
967
967
};
968
968
969
- static const struct idle_cpu idle_cpu_nehalem = {
969
+ static const struct idle_cpu idle_cpu_nehalem __initconst = {
970
970
.state_table = nehalem_cstates ,
971
971
.auto_demotion_disable_flags = NHM_C1_AUTO_DEMOTE | NHM_C3_AUTO_DEMOTE ,
972
972
.disable_promotion_to_c1e = true,
973
973
};
974
974
975
- static const struct idle_cpu idle_cpu_nhx = {
975
+ static const struct idle_cpu idle_cpu_nhx __initconst = {
976
976
.state_table = nehalem_cstates ,
977
977
.auto_demotion_disable_flags = NHM_C1_AUTO_DEMOTE | NHM_C3_AUTO_DEMOTE ,
978
978
.disable_promotion_to_c1e = true,
979
979
.use_acpi = true,
980
980
};
981
981
982
- static const struct idle_cpu idle_cpu_atom = {
982
+ static const struct idle_cpu idle_cpu_atom __initconst = {
983
983
.state_table = atom_cstates ,
984
984
};
985
985
986
- static const struct idle_cpu idle_cpu_tangier = {
986
+ static const struct idle_cpu idle_cpu_tangier __initconst = {
987
987
.state_table = tangier_cstates ,
988
988
};
989
989
990
- static const struct idle_cpu idle_cpu_lincroft = {
990
+ static const struct idle_cpu idle_cpu_lincroft __initconst = {
991
991
.state_table = atom_cstates ,
992
992
.auto_demotion_disable_flags = ATM_LNC_C6_AUTO_DEMOTE ,
993
993
};
994
994
995
- static const struct idle_cpu idle_cpu_snb = {
995
+ static const struct idle_cpu idle_cpu_snb __initconst = {
996
996
.state_table = snb_cstates ,
997
997
.disable_promotion_to_c1e = true,
998
998
};
999
999
1000
- static const struct idle_cpu idle_cpu_snx = {
1000
+ static const struct idle_cpu idle_cpu_snx __initconst = {
1001
1001
.state_table = snb_cstates ,
1002
1002
.disable_promotion_to_c1e = true,
1003
1003
.use_acpi = true,
1004
1004
};
1005
1005
1006
- static const struct idle_cpu idle_cpu_byt = {
1006
+ static const struct idle_cpu idle_cpu_byt __initconst = {
1007
1007
.state_table = byt_cstates ,
1008
1008
.disable_promotion_to_c1e = true,
1009
1009
.byt_auto_demotion_disable_flag = true,
1010
1010
};
1011
1011
1012
- static const struct idle_cpu idle_cpu_cht = {
1012
+ static const struct idle_cpu idle_cpu_cht __initconst = {
1013
1013
.state_table = cht_cstates ,
1014
1014
.disable_promotion_to_c1e = true,
1015
1015
.byt_auto_demotion_disable_flag = true,
1016
1016
};
1017
1017
1018
- static const struct idle_cpu idle_cpu_ivb = {
1018
+ static const struct idle_cpu idle_cpu_ivb __initconst = {
1019
1019
.state_table = ivb_cstates ,
1020
1020
.disable_promotion_to_c1e = true,
1021
1021
};
1022
1022
1023
- static const struct idle_cpu idle_cpu_ivt = {
1023
+ static const struct idle_cpu idle_cpu_ivt __initconst = {
1024
1024
.state_table = ivt_cstates ,
1025
1025
.disable_promotion_to_c1e = true,
1026
1026
.use_acpi = true,
1027
1027
};
1028
1028
1029
- static const struct idle_cpu idle_cpu_hsw = {
1029
+ static const struct idle_cpu idle_cpu_hsw __initconst = {
1030
1030
.state_table = hsw_cstates ,
1031
1031
.disable_promotion_to_c1e = true,
1032
1032
};
1033
1033
1034
- static const struct idle_cpu idle_cpu_hsx = {
1034
+ static const struct idle_cpu idle_cpu_hsx __initconst = {
1035
1035
.state_table = hsw_cstates ,
1036
1036
.disable_promotion_to_c1e = true,
1037
1037
.use_acpi = true,
1038
1038
};
1039
1039
1040
- static const struct idle_cpu idle_cpu_bdw = {
1040
+ static const struct idle_cpu idle_cpu_bdw __initconst = {
1041
1041
.state_table = bdw_cstates ,
1042
1042
.disable_promotion_to_c1e = true,
1043
1043
};
1044
1044
1045
- static const struct idle_cpu idle_cpu_bdx = {
1045
+ static const struct idle_cpu idle_cpu_bdx __initconst = {
1046
1046
.state_table = bdw_cstates ,
1047
1047
.disable_promotion_to_c1e = true,
1048
1048
.use_acpi = true,
1049
1049
};
1050
1050
1051
- static const struct idle_cpu idle_cpu_skl = {
1051
+ static const struct idle_cpu idle_cpu_skl __initconst = {
1052
1052
.state_table = skl_cstates ,
1053
1053
.disable_promotion_to_c1e = true,
1054
1054
};
1055
1055
1056
- static const struct idle_cpu idle_cpu_skx = {
1056
+ static const struct idle_cpu idle_cpu_skx __initconst = {
1057
1057
.state_table = skx_cstates ,
1058
1058
.disable_promotion_to_c1e = true,
1059
1059
.use_acpi = true,
1060
1060
};
1061
1061
1062
- static const struct idle_cpu idle_cpu_avn = {
1062
+ static const struct idle_cpu idle_cpu_avn __initconst = {
1063
1063
.state_table = avn_cstates ,
1064
1064
.disable_promotion_to_c1e = true,
1065
1065
.use_acpi = true,
1066
1066
};
1067
1067
1068
- static const struct idle_cpu idle_cpu_knl = {
1068
+ static const struct idle_cpu idle_cpu_knl __initconst = {
1069
1069
.state_table = knl_cstates ,
1070
1070
.use_acpi = true,
1071
1071
};
1072
1072
1073
- static const struct idle_cpu idle_cpu_bxt = {
1073
+ static const struct idle_cpu idle_cpu_bxt __initconst = {
1074
1074
.state_table = bxt_cstates ,
1075
1075
.disable_promotion_to_c1e = true,
1076
1076
};
1077
1077
1078
- static const struct idle_cpu idle_cpu_dnv = {
1078
+ static const struct idle_cpu idle_cpu_dnv __initconst = {
1079
1079
.state_table = dnv_cstates ,
1080
1080
.disable_promotion_to_c1e = true,
1081
1081
.use_acpi = true,
0 commit comments