title: set time in kernel space
body: <p>I apologize but I'm totally newbie...</p>
  
  <p>I'm trying to write my own driver for custom hardware.
  I need to read system time in kernel:</p>
  
  <pre><code>struct timeval time;
  struct tm broken, mytime;
  
  ...
  do_gettimeofday(&amp;time);
  time_to_tm(time.tv_sec, 0, &amp;broken);
  printk(KERN_INFO "Timer synced at %d:%d:%d:%ld\n", broken.tm_hour, broken.tm_min,broken.tm_sec, time.tv_usec);
  ...
  </code></pre>
  
  <p>and this works.</p>
  
  <p>Then I manually set:
  - broken.tm_hour
  - broken.tm_min
  ...
  - broken.tm_sec
  - time.tv_usec</p>
  
  <p>how can I now update system time with my values?
  Thanks. </p>