aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/eisa/eisa.ids
Commit message (Expand)AuthorAge
* Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds2005-04-16
0.osdl.org> 2005-04-16 18:20:36 -0400 Linux-2.6.12-rc2' href='/cgit/cgit.cgi/litmus-rt.git/commit/include/linux/mmzone.h?h=wip-shared-lib&id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2'>1da177e4c3f4
97965478a66f
1da177e4c3f4
1da177e4c3f4


e815af95f949
1da177e4c3f4



bdc8cb984576
8357f8695d58
835c134ec4dd
01fc0ac198ea
60063497a95e
93ff66bf1ef2
1da177e4c3f4






e984bb43f745
1da177e4c3f4
5ad333eb66ff


35fca53e15a6
5ad333eb66ff



47118af076f6



























49f223a9cd96
47118af076f6

49f223a9cd96
47118af076f6
b2a0ac8875a0




467c996c1e19



467c996c1e19


1da177e4c3f4
b2a0ac8875a0
1da177e4c3f4













22fc6eccbf4c
1da177e4c3f4




2244b95a7bcf
51ed4491271b
d23ad42324cc
b69408e88bd8
4f98a2fee8ac



894bc310419a
5344b7e64898
f3dbd34460ff

65ba55f500a3
347ce434d57d
b1e7a8fd854d
ce866b34ae1b
51ed4491271b


c6a7f5728a1d

fd39fc8561be
d2c5e30c9a14
e129b5c23c2b
49ea7eb65e7c
fc3ba692a4d1
a731286de622

4b02108ac1b3
ea941f0e2a8c

ca889e6c45e0







79134171df23
2244b95a7bcf

4f98a2fee8ac












b69408e88bd8
4f98a2fee8ac



894bc310419a
894bc310419a

b69408e88bd8
4111304dab19
b69408e88bd8
4111304dab19
894bc310419a
4111304dab19
4f98a2fee8ac
4111304dab19
4f98a2fee8ac

4111304dab19
b69408e88bd8
4111304dab19
b69408e88bd8

4111304dab19
894bc310419a
4111304dab19
894bc310419a

89abfab133ef


59f91e5dd050
89abfab133ef








6290df545814

89abfab133ef
7f5e86c2ccc1


6290df545814

bb2a0de92c89





39deaf858515
f3fd4a61928a
f80c0673610e
f3fd4a61928a
c82449352854
f3fd4a61928a
4356f21d0928



418589663d60










1da177e4c3f4

1da177e4c3f4

5f8dcc21211a


1da177e4c3f4


3dfa5721f12c
4037d452202e


2244b95a7bcf
df9ecaba3f15
2244b95a7bcf

99dcc3e5a94e
e7c8d5c9955a
97965478a66f

2f1b6248682f
4b51d6698921
2f1b6248682f











2f1b6248682f






4b51d6698921
fb0e7942bdcb
2f1b6248682f





fb0e7942bdcb
2f1b6248682f





e53ef38d05dd
2f1b6248682f








e53ef38d05dd
2a1e274acf0b
97965478a66f
2f1b6248682f
1da177e4c3f4
97965478a66f

1da177e4c3f4




19655d348700
1da177e4c3f4
fb0e7942bdcb
97965478a66f
4b51d6698921
97965478a66f
19655d348700
97965478a66f
19655d348700
4b51d6698921

fb0e7942bdcb
1da177e4c3f4
1da177e4c3f4

418589663d60



1da177e4c3f4
aa45484031dd






1da177e4c3f4








ab8fabd46f81





e7c8d5c9955a
d5f541ed6e31
9614634fe6a1


8417bba4b151
0ff38490c836
e7c8d5c9955a
43cf38eb5cea
1da177e4c3f4



93e4a89a8c98
bdc8cb984576



49f223a9cd96






1da177e4c3f4

835c134ec4dd

d9c234005227
835c134ec4dd




4f92e2586b43







aff622495c9a
4f92e2586b43
1da177e4c3f4



6290df545814

4f98a2fee8ac
1da177e4c3f4
e815af95f949
753ee728964e
2244b95a7bcf

9eeff2395e3c

556adecba110




1da177e4c3f4





02b694dea473
1da177e4c3f4





















02b694dea473
1da177e4c3f4





1da177e4c3f4


bdc8cb984576









1da177e4c3f4





15ad7cdcfd76
22fc6eccbf4c
1da177e4c3f4
e815af95f949
e815af95f949
098d7f128a4e
0e093d99763e


e815af95f949





d773ed6b856a





e815af95f949




0e093d99763e




e815af95f949



d773ed6b856a
098d7f128a4e



e815af95f949
1da177e4c3f4






9276b1bc96a1



523b945855a1

25a64ec1e7d0
523b945855a1

54a6eb5c4765

523b945855a1
54a6eb5c4765
523b945855a1

9276b1bc96a1



























































9276b1bc96a1
7253f4ef04b1
9276b1bc96a1


54a6eb5c4765
9276b1bc96a1


1da177e4c3f4
dd1a239f6f2d








1da177e4c3f4




9276b1bc96a1

dd1a239f6f2d







1da177e4c3f4

9276b1bc96a1
dd1a239f6f2d
9276b1bc96a1


1da177e4c3f4

0ee332c14518
c713216deebd




0ee332c14518
1da177e4c3f4
5b99cd0effaf




1da177e4c3f4













523b945855a1
1da177e4c3f4
52d4b9ac0b98
1da177e4c3f4
52d4b9ac0b98


d41dee369bff
08677214e318
1da177e4c3f4
08677214e318
208d54e5513c









1da177e4c3f4




1da177e4c3f4
d8adde17e5f8
1da177e4c3f4
9950474883e0
1da177e4c3f4



d41dee369bff
408fde81c1bf
d41dee369bff


408fde81c1bf
1da177e4c3f4
c6830c22603a






208d54e5513c

4eaf3f64397c
1f522509c77a
9950474883e0
88f5acf88ae6


7fb1d9fca5c6
a2f3aa025766



718127cc3170
a2f3aa025766

718127cc3170
7f5e86c2ccc1










1da177e4c3f4





7aac78988551





1da177e4c3f4








f3fe65122da0




2a1e274acf0b



0ee332c14518
2a1e274acf0b





2f1b6248682f
1da177e4c3f4
e53ef38d05dd
2a1e274acf0b

e53ef38d05dd


1da177e4c3f4

2f1b6248682f
1da177e4c3f4


9328b8faae92
1da177e4c3f4







e53ef38d05dd
ddc81ed2c5d4



e53ef38d05dd


1da177e4c3f4






9328b8faae92

fb0e7942bdcb
9328b8faae92
fb0e7942bdcb


9328b8faae92



4b51d6698921
9328b8faae92
4b51d6698921


9328b8faae92

1da177e4c3f4

8d65af789f3e
1da177e4c3f4

8d65af789f3e
1da177e4c3f4
8d65af789f3e
8ad4b1fb8205
9614634fe6a1
8d65af789f3e
0ff38490c836
8d65af789f3e
1da177e4c3f4
f0c0b2b808f2
8d65af789f3e
f0c0b2b808f2


93b7504e3e6c
1da177e4c3f4



1da177e4c3f4
93b7504e3e6c
1da177e4c3f4


93b7504e3e6c
348f8b6c4837
95144c788dc0


8357f8695d58

12d15f0d51d4
8357f8695d58





8357f8695d58











ee99c71c59f8







dd1a239f6f2d



















19770b32609b








5bead2a06806


19770b32609b




dd1a239f6f2d
19770b32609b








5bead2a06806

19770b32609b
dd1a239f6f2d
19770b32609b


54a6eb5c4765
19770b32609b

54a6eb5c4765

19770b32609b













5bead2a06806
54a6eb5c4765










19770b32609b
54a6eb5c4765
d41dee369bff



c713216deebd
0ee332c14518
b45445684198



b159d43fbf7e

2bdaf115b1c3



d41dee369bff

















835c134ec4dd
d9c234005227
835c134ec4dd
d41dee369bff



e3c40f379a14


a539f3533b78


d41dee369bff
52d4b9ac0b98
d41dee369bff
29751f6991e8




30c253e6da65



29751f6991e8



5c0e3066474b


52d4b9ac0b98







d41dee369bff

3e347261a80b




802f192e4a60
3e347261a80b
0faa56389c79
3e347261a80b
802f192e4a60
3e347261a80b

802f192e4a60
3e347261a80b

d41dee369bff
29751f6991e8

3e347261a80b


29751f6991e8
4ca644d970bf
04753278769f
29751f6991e8









30c253e6da65
29751f6991e8







540557b9439e
29751f6991e8
802f192e4a60
29751f6991e8

540557b9439e





29751f6991e8
802f192e4a60
29751f6991e8






d41dee369bff

29751f6991e8
d41dee369bff

7b7bf499f79d
d41dee369bff



29751f6991e8
d41dee369bff
7b7bf499f79d
d41dee369bff
540557b9439e






d41dee369bff





161599ff39a3




2bdaf115b1c3

d41dee369bff

d41dee369bff



28ae55c98e4d
d41dee369bff

7516795739bd
cc2559bccc72
7516795739bd



d41dee369bff






14e072984179











eb33575cf67d

























97965478a66f
1da177e4c3f4
1da177e4c3f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224


                       
                    
                             
 


                           
                         



                          
                          
                           
                                  
                             
                         
                     






                                                      
                                                 
 


                                                                       
                                                                       



                                 



























                                                                            
                                                   

                                           
                                 
      




                                                            



                                                              


                                                                           
                  
                                                         













                                                                              
                                        




                                                         
                     
                                                              
                      
                    



                                                                                
                                                                        
                                                                             

                                                                  
                                                                
                      
                      
                     


                                                         

                                       
                                                        
                  
                        
                                                                                
                                                                       

                                                                            
                                                                            

                                                                 







                                                                      
                                      

                                












                                                                       
               



                                                           
                        

                    
 
                                                                  
 
                                                                                
 
                                                
 
                                                                    

 
                                                  
 
                                                                  

 
                                                       
 
                                        

 


                                                                      
                                                                








                                                                  

                                             
                                              


                                 

  





                                                                    
                        
                                                             
                           
                                                             
                                        
                                                             



                                            










                                                      

                                                                 

                                                                     


                                                                          


                        
                                 


                  
                 
                          

                                               
  
 

                                   
                
                      











                                                                            






                                                    
      
                        





                                                                            
      





                                                                             
                     








                                                                           
      
                     
                      
  
 

                             




                                                                      
                                                                    
   
 
                    
                     
                       
                     
                       
                     

                                                                  
      
 

                                                            



                                                                     
          






                                                                           








                                                                                     





                                                                 
                  
                 


                                                                    
                                                   
                                               
      
                                                 



                                        
                                                                         



                                                            






                                                                       

                                                     

                        
                                                                       




                                                                 







                                                                      
                                                     
      



                                                                  

                                         
 
                                                                           
                                                                              
 

                                                               

          




                                                                    





                                                                   
                                                                           





















                                                                             
                                                           





                                                


                                                              









                                                                       





                                                                                        
                                      
                                        
 
              
                                                                         
                                                                            


                                                                              





                                                                      





                                                                              




                                                                        




                                                                    



                                                                 
 



                                                             
 






                                                                               



                                                            

  
                                                                             

                                                 

                                    
   
                       

 



























































                                                                         
                                                                               
                                                                                


                                                                               
                       


                      
  








                                                                            




                                                                

                                                                      







                                                                            

                 
                                                                                
                                                             


                                                                            

  
                                    




                                
                                          
 




                                                                      













                                                                             
                                                      
                     
                                                      
                                  


                                             
      
                         
                                   
      









                                                                              




                                                                              
                                      
                                                                                
                             
                                     



                                                                    
                               
                                                                          


                                                                                       
                                                                              
 






                                                                

                                 
                                    
                                     
                                                                               


                                                                          
                                                    



                       
                                                                                

                                                                  
 










                                                                  





                                                                                     





                                                                     








                                                                               




                                                   



                                               
                                                                 





                                            
                                                    
 
                     

                                                                    


                 

 
                                                   


                                    
 







                                                                              
                     



                                                                           


                 






                                                                  

                                             
                        
                                                                 


                 



                                           
                      
                                                               


                 

 

                                                                         
                                                           

                                                                           
                                                                
                                                                           
                                                                    
                                                                           
                                                                     
                                                           
                                                                 
                                                           
 
                                                               
                                                           


                                                                
                                  



                                                   
 
                                      


                       
                                        
 


                                                                        

   
                                                                        





                                                         











                                                                  







                                                         



















                                                                 








                                                                                                                                                           


                                                                            




                                                                       
 








                                                                                                                      

                                                                           
   
                                                                             


                                                                       
 

                                                                               

 













                                                                                                                                                
                                                                         










                                                                                                                 
                                                                      
 



                          
                                                    
                                               



                                                               

      



                                   

















                                                                         
                                 
                                                                            
 



                                                    


                                                           


                                                                                     
            
                   
                    




                                                               



                                                                



                                                          


                                                             







                                                                        

  




                                                                         
 
                                                           
                                                                                
                                                       
 

                                                         
     

                                                                           
 

                                                                   


                                                                            
 
                                                
                                       









                                                           
                                 







                                                                              
                                                              
 
                                                                                

 





                                                            
 
                                                                             






                                                    

                                                                     
                                                       

 
                                  



                                                      
                                                                      
 
      
 






                                                                        





                                                              




                                                                         

                                   

      



                                              
                                                      

                             
                                    
                                                  



                                           






                                                                               











                                                                        

























                                                                              
                                   
                          
                            
#ifndef _LINUX_MMZONE_H
#define _LINUX_MMZONE_H

#ifndef __ASSEMBLY__
#ifndef __GENERATING_BOUNDS_H

#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/bitops.h>
#include <linux/cache.h>
#include <linux/threads.h>
#include <linux/numa.h>
#include <linux/init.h>
#include <linux/seqlock.h>
#include <linux/nodemask.h>
#include <linux/pageblock-flags.h>
#include <generated/bounds.h>
#include <linux/atomic.h>
#include <asm/page.h>

/* Free memory management - zoned buddy allocator.  */
#ifndef CONFIG_FORCE_MAX_ZONEORDER
#define MAX_ORDER 11
#else
#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
#endif
#define MAX_ORDER_NR_PAGES (1 << (MAX_ORDER - 1))

/*
 * PAGE_ALLOC_COSTLY_ORDER is the order at which allocations are deemed
 * costly to service.  That is between allocation orders which should
 * coalesce naturally under reasonable reclaim pressure and those which
 * will not.
 */
#define PAGE_ALLOC_COSTLY_ORDER 3

enum {
	MIGRATE_UNMOVABLE,
	MIGRATE_RECLAIMABLE,
	MIGRATE_MOVABLE,
	MIGRATE_PCPTYPES,	/* the number of types on the pcp lists */
	MIGRATE_RESERVE = MIGRATE_PCPTYPES,
#ifdef CONFIG_CMA
	/*
	 * MIGRATE_CMA migration type is designed to mimic the way
	 * ZONE_MOVABLE works.  Only movable pages can be allocated
	 * from MIGRATE_CMA pageblocks and page allocator never
	 * implicitly change migration type of MIGRATE_CMA pageblock.
	 *
	 * The way to use it is to change migratetype of a range of
	 * pageblocks to MIGRATE_CMA which can be done by
	 * __free_pageblock_cma() function.  What is important though
	 * is that a range of pageblocks must be aligned to
	 * MAX_ORDER_NR_PAGES should biggest page be bigger then
	 * a single pageblock.
	 */
	MIGRATE_CMA,
#endif
	MIGRATE_ISOLATE,	/* can't allocate from here */
	MIGRATE_TYPES
};

#ifdef CONFIG_CMA
#  define is_migrate_cma(migratetype) unlikely((migratetype) == MIGRATE_CMA)
#  define cma_wmark_pages(zone)	zone->min_cma_pages
#else
#  define is_migrate_cma(migratetype) false
#  define cma_wmark_pages(zone) 0
#endif

#define for_each_migratetype_order(order, type) \
	for (order = 0; order < MAX_ORDER; order++) \
		for (type = 0; type < MIGRATE_TYPES; type++)

extern int page_group_by_mobility_disabled;

static inline int get_pageblock_migratetype(struct page *page)
{
	return get_pageblock_flags_group(page, PB_migrate, PB_migrate_end);
}

struct free_area {
	struct list_head	free_list[MIGRATE_TYPES];
	unsigned long		nr_free;
};

struct pglist_data;

/*
 * zone->lock and zone->lru_lock are two of the hottest locks in the kernel.
 * So add a wild amount of padding here to ensure that they fall into separate
 * cachelines.  There are very few zone structures in the machine, so space
 * consumption is not a concern here.
 */
#if defined(CONFIG_SMP)
struct zone_padding {
	char x[0];
} ____cacheline_internodealigned_in_smp;
#define ZONE_PADDING(name)	struct zone_padding name;
#else
#define ZONE_PADDING(name)
#endif

enum zone_stat_item {
	/* First 128 byte cacheline (assuming 64 bit words) */
	NR_FREE_PAGES,
	NR_LRU_BASE,
	NR_INACTIVE_ANON = NR_LRU_BASE, /* must match order of LRU_[IN]ACTIVE */
	NR_ACTIVE_ANON,		/*  "     "     "   "       "         */
	NR_INACTIVE_FILE,	/*  "     "     "   "       "         */
	NR_ACTIVE_FILE,		/*  "     "     "   "       "         */
	NR_UNEVICTABLE,		/*  "     "     "   "       "         */
	NR_MLOCK,		/* mlock()ed pages found and moved off LRU */
	NR_ANON_PAGES,	/* Mapped anonymous pages */
	NR_FILE_MAPPED,	/* pagecache pages mapped into pagetables.
			   only modified from process context */
	NR_FILE_PAGES,
	NR_FILE_DIRTY,
	NR_WRITEBACK,
	NR_SLAB_RECLAIMABLE,
	NR_SLAB_UNRECLAIMABLE,
	NR_PAGETABLE,		/* used for pagetables */
	NR_KERNEL_STACK,
	/* Second 128 byte cacheline */
	NR_UNSTABLE_NFS,	/* NFS unstable pages */
	NR_BOUNCE,
	NR_VMSCAN_WRITE,
	NR_VMSCAN_IMMEDIATE,	/* Prioritise for reclaim when writeback ends */
	NR_WRITEBACK_TEMP,	/* Writeback using temporary buffers */
	NR_ISOLATED_ANON,	/* Temporary isolated pages from anon lru */
	NR_ISOLATED_FILE,	/* Temporary isolated pages from file lru */
	NR_SHMEM,		/* shmem pages (included tmpfs/GEM pages) */
	NR_DIRTIED,		/* page dirtyings since bootup */
	NR_WRITTEN,		/* page writings since bootup */
#ifdef CONFIG_NUMA
	NUMA_HIT,		/* allocated in intended node */
	NUMA_MISS,		/* allocated in non intended node */
	NUMA_FOREIGN,		/* was intended here, hit elsewhere */
	NUMA_INTERLEAVE_HIT,	/* interleaver preferred this zone */
	NUMA_LOCAL,		/* allocation from local node */
	NUMA_OTHER,		/* allocation from other node */
#endif
	NR_ANON_TRANSPARENT_HUGEPAGES,
	NR_VM_ZONE_STAT_ITEMS };

/*
 * We do arithmetic on the LRU lists in various places in the code,
 * so it is important to keep the active lists LRU_ACTIVE higher in
 * the array than the corresponding inactive lists, and to keep
 * the *_FILE lists LRU_FILE higher than the corresponding _ANON lists.
 *
 * This has to be kept in sync with the statistics in zone_stat_item
 * above and the descriptions in vmstat_text in mm/vmstat.c
 */
#define LRU_BASE 0
#define LRU_ACTIVE 1
#define LRU_FILE 2

enum lru_list {
	LRU_INACTIVE_ANON = LRU_BASE,
	LRU_ACTIVE_ANON = LRU_BASE + LRU_ACTIVE,
	LRU_INACTIVE_FILE = LRU_BASE + LRU_FILE,
	LRU_ACTIVE_FILE = LRU_BASE + LRU_FILE + LRU_ACTIVE,
	LRU_UNEVICTABLE,
	NR_LRU_LISTS
};

#define for_each_lru(lru) for (lru = 0; lru < NR_LRU_LISTS; lru++)

#define for_each_evictable_lru(lru) for (lru = 0; lru <= LRU_ACTIVE_FILE; lru++)

static inline int is_file_lru(enum lru_list lru)
{
	return (lru == LRU_INACTIVE_FILE || lru == LRU_ACTIVE_FILE);
}

static inline int is_active_lru(enum lru_list lru)
{
	return (lru == LRU_ACTIVE_ANON || lru == LRU_ACTIVE_FILE);
}

static inline int is_unevictable_lru(enum lru_list lru)
{
	return (lru == LRU_UNEVICTABLE);
}

struct zone_reclaim_stat {
	/*
	 * The pageout code in vmscan.c keeps track of how many of the
	 * mem/swap backed and file backed pages are referenced.
	 * The higher the rotated/scanned ratio, the more valuable
	 * that cache is.
	 *
	 * The anon LRU stats live in [0], file LRU stats in [1]
	 */
	unsigned long		recent_rotated[2];
	unsigned long		recent_scanned[2];
};

struct lruvec {
	struct list_head lists[NR_LRU_LISTS];
	struct zone_reclaim_stat reclaim_stat;
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
	struct zone *zone;
#endif
};

/* Mask used at gathering information at once (see memcontrol.c) */
#define LRU_ALL_FILE (BIT(LRU_INACTIVE_FILE) | BIT(LRU_ACTIVE_FILE))
#define LRU_ALL_ANON (BIT(LRU_INACTIVE_ANON) | BIT(LRU_ACTIVE_ANON))
#define LRU_ALL_EVICTABLE (LRU_ALL_FILE | LRU_ALL_ANON)
#define LRU_ALL	     ((1 << NR_LRU_LISTS) - 1)

/* Isolate clean file */
#define ISOLATE_CLEAN		((__force isolate_mode_t)0x1)
/* Isolate unmapped file */
#define ISOLATE_UNMAPPED	((__force isolate_mode_t)0x2)
/* Isolate for asynchronous migration */
#define ISOLATE_ASYNC_MIGRATE	((__force isolate_mode_t)0x4)

/* LRU Isolation modes. */
typedef unsigned __bitwise__ isolate_mode_t;

enum zone_watermarks {
	WMARK_MIN,
	WMARK_LOW,
	WMARK_HIGH,
	NR_WMARK
};

#define min_wmark_pages(z) (z->watermark[WMARK_MIN])
#define low_wmark_pages(z) (z->watermark[WMARK_LOW])
#define high_wmark_pages(z) (z->watermark[WMARK_HIGH])

struct per_cpu_pages {
	int count;		/* number of pages in the list */
	int high;		/* high watermark, emptying needed */
	int batch;		/* chunk size for buddy add/remove */

	/* Lists of pages, one per migrate type stored on the pcp-lists */
	struct list_head lists[MIGRATE_PCPTYPES];
};

struct per_cpu_pageset {
	struct per_cpu_pages pcp;
#ifdef CONFIG_NUMA
	s8 expire;
#endif
#ifdef CONFIG_SMP
	s8 stat_threshold;
	s8 vm_stat_diff[NR_VM_ZONE_STAT_ITEMS];
#endif
};

#endif /* !__GENERATING_BOUNDS.H */

enum zone_type {
#ifdef CONFIG_ZONE_DMA
	/*
	 * ZONE_DMA is used when there are devices that are not able
	 * to do DMA to all of addressable memory (ZONE_NORMAL). Then we
	 * carve out the portion of memory that is needed for these devices.
	 * The range is arch specific.
	 *
	 * Some examples
	 *
	 * Architecture		Limit
	 * ---------------------------
	 * parisc, ia64, sparc	<4G
	 * s390			<2G
	 * arm			Various
	 * alpha		Unlimited or 0-16MB.
	 *
	 * i386, x86_64 and multiple other arches
	 * 			<16M.
	 */
	ZONE_DMA,
#endif
#ifdef CONFIG_ZONE_DMA32
	/*
	 * x86_64 needs two ZONE_DMAs because it supports devices that are
	 * only able to do DMA to the lower 16M but also 32 bit devices that
	 * can only do DMA areas below 4G.
	 */
	ZONE_DMA32,
#endif
	/*
	 * Normal addressable memory is in ZONE_NORMAL. DMA operations can be
	 * performed on pages in ZONE_NORMAL if the DMA devices support
	 * transfers to all addressable memory.
	 */
	ZONE_NORMAL,
#ifdef CONFIG_HIGHMEM
	/*
	 * A memory area that is only addressable by the kernel through
	 * mapping portions into its own address space. This is for example
	 * used by i386 to allow the kernel to address the memory beyond
	 * 900MB. The kernel will set up special mappings (page
	 * table entries on i386) for each page that the kernel needs to
	 * access.
	 */
	ZONE_HIGHMEM,
#endif
	ZONE_MOVABLE,
	__MAX_NR_ZONES
};

#ifndef __GENERATING_BOUNDS_H

/*
 * When a memory allocation must conform to specific limitations (such
 * as being suitable for DMA) the caller will pass in hints to the
 * allocator in the gfp_mask, in the zone modifier bits.  These bits
 * are used to select a priority ordered list of memory zones which
 * match the requested limits. See gfp_zone() in include/linux/gfp.h
 */

#if MAX_NR_ZONES < 2
#define ZONES_SHIFT 0
#elif MAX_NR_ZONES <= 2
#define ZONES_SHIFT 1
#elif MAX_NR_ZONES <= 4
#define ZONES_SHIFT 2
#else
#error ZONES_SHIFT -- too many zones configured adjust calculation
#endif

struct zone {
	/* Fields commonly accessed by the page allocator */

	/* zone watermarks, access with *_wmark_pages(zone) macros */
	unsigned long watermark[NR_WMARK];

	/*
	 * When free pages are below this point, additional steps are taken
	 * when reading the number of free pages to avoid per-cpu counter
	 * drift allowing watermarks to be breached
	 */
	unsigned long percpu_drift_mark;

	/*
	 * We don't know if the memory that we're going to allocate will be freeable
	 * or/and it will be released eventually, so to avoid totally wasting several
	 * GB of ram we must reserve some of the lower zone memory (otherwise we risk
	 * to run OOM on the lower zones despite there's tons of freeable ram
	 * on the higher zones). This array is recalculated at runtime if the
	 * sysctl_lowmem_reserve_ratio sysctl changes.
	 */
	unsigned long		lowmem_reserve[MAX_NR_ZONES];

	/*
	 * This is a per-zone reserve of pages that should not be
	 * considered dirtyable memory.
	 */
	unsigned long		dirty_balance_reserve;

#ifdef CONFIG_NUMA
	int node;
	/*
	 * zone reclaim becomes active if more unmapped pages exist.
	 */
	unsigned long		min_unmapped_pages;
	unsigned long		min_slab_pages;
#endif
	struct per_cpu_pageset __percpu *pageset;
	/*
	 * free areas of different sizes
	 */
	spinlock_t		lock;
	int                     all_unreclaimable; /* All pages pinned */
#ifdef CONFIG_MEMORY_HOTPLUG
	/* see spanned/present_pages for more description */
	seqlock_t		span_seqlock;
#endif
#ifdef CONFIG_CMA
	/*
	 * CMA needs to increase watermark levels during the allocation
	 * process to make sure that the system is not starved.
	 */
	unsigned long		min_cma_pages;
#endif
	struct free_area	free_area[MAX_ORDER];

#ifndef CONFIG_SPARSEMEM
	/*
	 * Flags for a pageblock_nr_pages block. See pageblock-flags.h.
	 * In SPARSEMEM, this map is stored in struct mem_section
	 */
	unsigned long		*pageblock_flags;
#endif /* CONFIG_SPARSEMEM */

#ifdef CONFIG_COMPACTION
	/*
	 * On compaction failure, 1<<compact_defer_shift compactions
	 * are skipped before trying again. The number attempted since
	 * last failure is tracked with compact_considered.
	 */
	unsigned int		compact_considered;
	unsigned int		compact_defer_shift;
	int			compact_order_failed;
#endif

	ZONE_PADDING(_pad1_)

	/* Fields commonly accessed by the page reclaim scanner */
	spinlock_t		lru_lock;
	struct lruvec		lruvec;

	unsigned long		pages_scanned;	   /* since last reclaim */
	unsigned long		flags;		   /* zone flags, see below */

	/* Zone statistics */
	atomic_long_t		vm_stat[NR_VM_ZONE_STAT_ITEMS];

	/*
	 * The target ratio of ACTIVE_ANON to INACTIVE_ANON pages on
	 * this zone's LRU.  Maintained by the pageout code.
	 */
	unsigned int inactive_ratio;


	ZONE_PADDING(_pad2_)
	/* Rarely used or read-mostly fields */

	/*
	 * wait_table		-- the array holding the hash table
	 * wait_table_hash_nr_entries	-- the size of the hash table array
	 * wait_table_bits	-- wait_table_size == (1 << wait_table_bits)
	 *
	 * The purpose of all these is to keep track of the people
	 * waiting for a page to become available and make them
	 * runnable again when possible. The trouble is that this
	 * consumes a lot of space, especially when so few things
	 * wait on pages at a given time. So instead of using
	 * per-page waitqueues, we use a waitqueue hash table.
	 *
	 * The bucket discipline is to sleep on the same queue when
	 * colliding and wake all in that wait queue when removing.
	 * When something wakes, it must check to be sure its page is
	 * truly available, a la thundering herd. The cost of a
	 * collision is great, but given the expected load of the
	 * table, they should be so rare as to be outweighed by the
	 * benefits from the saved space.
	 *
	 * __wait_on_page_locked() and unlock_page() in mm/filemap.c, are the
	 * primary users of these fields, and in mm/page_alloc.c