mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm: use totalram_pages instead of num_physpages at runtime
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu <[email protected]> Cc: Miklos Szeredi <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Alexey Kuznetsov <[email protected]> Cc: James Morris <[email protected]> Cc: Hideaki YOSHIFUJI <[email protected]> Cc: Patrick McHardy <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7ee3d4e8cd
commit
0ed5fd1385
3 changed files with 4 additions and 4 deletions
|
|
@ -93,7 +93,7 @@ void inet_frags_init(struct inet_frags *f)
|
|||
}
|
||||
rwlock_init(&f->lock);
|
||||
|
||||
f->rnd = (u32) ((num_physpages ^ (num_physpages>>7)) ^
|
||||
f->rnd = (u32) ((totalram_pages ^ (totalram_pages >> 7)) ^
|
||||
(jiffies ^ (jiffies >> 6)));
|
||||
|
||||
setup_timer(&f->secret_timer, inet_frag_secret_rebuild,
|
||||
|
|
|
|||
Loading…
Reference in a new issue