VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / include / linux / hpet.h
index 9ab04e9..af4da7d 100644 (file)
@@ -54,12 +54,6 @@ struct hpet {
 #define        HPET_LEG_RT_CNF_MASK            (2UL)
 #define        HPET_ENABLE_CNF_MASK            (1UL)
 
-/*
- * HPET interrupt status register
- */
-
-#define        HPET_ISR_CLEAR(HPET, TIMER)                             \
-               (HPET)->hpet_isr |= (1UL << TIMER)
 
 /*
  * Timer configuration register
@@ -125,6 +119,12 @@ struct hpet_data {
 
 #define        HPET_DATA_PLATFORM      0x0001  /* platform call to hpet_alloc */
 
+static inline void hpet_reserve_timer(struct hpet_data *hd, int timer)
+{
+       hd->hd_state |= (1 << timer);
+       return;
+}
+
 int hpet_alloc(struct hpet_data *);
 int hpet_register(struct hpet_task *, int);
 int hpet_unregister(struct hpet_task *);