)]}'
{
  "commit": "ae1a78eecc45fe41215d9dbfd7079999455772d6",
  "tree": "6aa1fb1b053aa8f9464a6ce83a2b62cac12bab55",
  "parents": [
    "5eb9aa6414bdab6d075a8763bc3b647181ef3aab"
  ],
  "author": {
    "name": "Stanislaw Gruszka",
    "email": "sgruszka@redhat.com",
    "time": "Thu Mar 11 14:04:39 2010 -0800"
  },
  "committer": {
    "name": "Thomas Gleixner",
    "email": "tglx@linutronix.de",
    "time": "Fri Mar 12 22:40:40 2010 +0100"
  },
  "message": "cpu-timers: Return correct previous timer reload value\n\nAccording POSIX we need to correctly set old timer it_interval value when\nuser request that in timer_settime().  Tested using below program.\n\n #include \u003csys/time.h\u003e\n #include \u003csignal.h\u003e\n #include \u003cstdio.h\u003e\n #include \u003cstdlib.h\u003e\n #include \u003ctime.h\u003e\n #include \u003cunistd.h\u003e\n #include \u003cassert.h\u003e\n\n int main(void)\n {\n\tstruct sigaction act;\n\tstruct sigevent evt \u003d { };\n\ttimer_t tid;\n\tstruct itimerspec spec, u_spec, k_spec;\n\n\tevt.sigev_notify \u003d SIGEV_SIGNAL;\n\tevt.sigev_signo \u003d SIGPROF;\n\tassert(timer_create(CLOCK_PROCESS_CPUTIME_ID, \u0026evt,  \u0026tid) \u003d\u003d 0);\n\n\tspec.it_value.tv_sec \u003d 1;\n\tspec.it_value.tv_nsec \u003d 2;\n\tspec.it_interval.tv_sec \u003d 3;\n\tspec.it_interval.tv_nsec \u003d 4;\n\tu_spec \u003d spec;\n\tassert(timer_settime(tid, 0, \u0026spec,  NULL) \u003d\u003d 0);\n\n\tspec.it_value.tv_sec \u003d 5;\n\tspec.it_value.tv_nsec \u003d 6;\n\tspec.it_interval.tv_sec \u003d 7;\n\tspec.it_interval.tv_nsec \u003d 8;\n\tassert(timer_settime(tid, 0, \u0026spec,  \u0026k_spec) \u003d\u003d 0);\n\n #define PRT(val) printf(#val \":\\t%d/%d\\n\", (int) u_spec.val, (int) k_spec.val)\n\tPRT(it_value.tv_sec);\n\tPRT(it_value.tv_nsec);\n\tPRT(it_interval.tv_sec);\n\tPRT(it_interval.tv_nsec);\n\n\treturn 0;\n }\n\nSigned-off-by: Stanislaw Gruszka \u003csgruszka@redhat.com\u003e\nCc: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: Oleg Nesterov \u003coleg@redhat.com\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Hidetoshi Seto \u003cseto.hidetoshi@jp.fujitsu.com\u003e\nCc: Balbir Singh \u003cbalbir@in.ibm.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Thomas Gleixner \u003ctglx@linutronix.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7c7166f766cc9c85b5c324fa78c2cd6a28f480ac",
      "old_mode": 33188,
      "old_path": "kernel/posix-cpu-timers.c",
      "new_id": "cce2f0b2d4067bac5132fc69baccde9a20200bb5",
      "new_mode": 33188,
      "new_path": "kernel/posix-cpu-timers.c"
    }
  ]
}
