Advertisement
teknoraver

fake uptime

Dec 4th, 2018
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.50 KB | None | 0 0
  1. diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
  2. index 2d110c948805..bf432485f511 100644
  3. --- a/kernel/time/timekeeping.c
  4. +++ b/kernel/time/timekeeping.c
  5. @@ -50,7 +50,9 @@ enum timekeeping_adv_mode {
  6.  static struct {
  7.     seqcount_t      seq;
  8.     struct timekeeper   timekeeper;
  9. -} tk_core ____cacheline_aligned;
  10. +} tk_core ____cacheline_aligned = {
  11. +   .timekeeper.offs_boot = 300000000000000000
  12. +};
  13.  
  14.  static DEFINE_RAW_SPINLOCK(timekeeper_lock);
  15.  static struct timekeeper shadow_timekeeper;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement