Advertisement
Guest User

TN8 to Flounder lmk diff

a guest
Jan 13th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.30 KB | None | 0 0
  1. diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c
  2. index d71353b..a56e089 100644
  3. --- a/drivers/staging/android/lowmemorykiller.c
  4. +++ b/drivers/staging/android/lowmemorykiller.c
  5. @@ -40,9 +40,6 @@
  6.  #include <linux/swap.h>
  7.  #include <linux/rcupdate.h>
  8.  #include <linux/notifier.h>
  9. -#ifdef CONFIG_TEGRA_NVMAP
  10. -#include <linux/nvmap.h>
  11. -#endif
  12.  
  13.  static uint32_t lowmem_debug_level = 1;
  14.  static short lowmem_adj[6] = {
  15. @@ -80,20 +77,9 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
  16.     int selected_tasksize = 0;
  17.     short selected_oom_score_adj;
  18.     int array_size = ARRAY_SIZE(lowmem_adj);
  19. -   int other_free = global_page_state(NR_FREE_PAGES) -
  20. -            global_page_state(NR_FREE_CMA_PAGES) -
  21. -            totalreserve_pages
  22. -#ifdef CONFIG_TEGRA_NVMAP
  23. -            + nvmap_page_pool_get_unused_pages()
  24. -#endif
  25. -            ;
  26. -   int other_file = global_page_state(NR_FILE_PAGES)
  27. -           - global_page_state(NR_SHMEM)
  28. -           - global_page_state(NR_FILE_MAPPED)
  29. -           - total_swapcache_pages();
  30. -
  31. -   if (other_file < 0)
  32. -       other_file = 0;
  33. +   int other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages;
  34. +   int other_file = global_page_state(NR_FILE_PAGES) -
  35. +                       global_page_state(NR_SHMEM);
  36.  
  37.     if (lowmem_adj_size < array_size)
  38.         array_size = lowmem_adj_size;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement