Index: /trunk/src/VBox/Devices/PC/DevRTC.cpp
===================================================================
--- /trunk/src/VBox/Devices/PC/DevRTC.cpp	(revision 30845)
+++ /trunk/src/VBox/Devices/PC/DevRTC.cpp	(revision 30846)
@@ -225,4 +225,5 @@
         TMTimerSet(s->CTX_SUFF(pPeriodicTimer), s->next_periodic_time);
 
+#ifdef IN_RING3
         if (period != s->CurPeriod)
         {
@@ -231,4 +232,5 @@
             s->CurPeriod = period;
         }
+#endif
     } else {
         if (TMTimerIsActive(s->CTX_SUFF(pPeriodicTimer)) && s->cRelLogEntries++ < 64)
