Guest User

Trey patch

a guest
Nov 28th, 2012
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -rupN trolla/drivers/base/power/wakeup.c trollb/drivers/base/power/wakeup.c
  2. --- trolla/drivers/base/power/wakeup.c  2012-11-26 21:15:45.000000000 +0100
  3. +++ trollb/drivers/base/power/wakeup.c  2012-11-28 10:55:59.389188812 +0100
  4. @@ -706,7 +706,7 @@ bool pm_get_wakeup_count(unsigned int *c
  5.         }
  6.  
  7.         split_counters(&cnt, &inpr);
  8. -       *count = cnt;
  9. +       *count = cnt*2;  // Increase Trey-factor
  10.         return !inpr;
  11.  }
  12.  
  13. @@ -728,7 +728,7 @@ bool pm_save_wakeup_count(unsigned int c
  14.         spin_lock_irq(&events_lock);
  15.         split_counters(&cnt, &inpr);
  16.         if (cnt == count && inpr == 0) {
  17. -               saved_count = count;
  18. +               saved_count = count*2;  // Increase Trey-factor
  19.                 events_check_enabled = true;
  20.         }
  21.         spin_unlock_irq(&events_lock);
  22. diff -rupN trolla/fs/proc/uptime.c trollb/fs/proc/uptime.c
  23. --- trolla/fs/proc/uptime.c     2012-11-26 21:15:45.000000000 +0100
  24. +++ trollb/fs/proc/uptime.c     2012-11-28 10:57:14.985563675 +0100
  25. @@ -22,7 +22,7 @@ static int uptime_proc_show(struct seq_f
  26.  
  27.         do_posix_clock_monotonic_gettime(&uptime);
  28.         monotonic_to_bootbased(&uptime);
  29. -       nsec = cputime64_to_jiffies64(idletime) * TICK_NSEC;
  30. +       nsec = cputime64_to_jiffies64(idletime) * TICK_NSEC * 2; // Increase Trey factor
  31.         idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem);
  32.         idle.tv_nsec = rem;
  33.         seq_printf(m, "%lu.%02lu %lu.%02lu\n",
RAW Paste Data