drm/nouveau/timer: bump ptimer's alarm delay from u32 to u64
authorMartin Peres <martin.peres@labri.fr>
Sun, 7 Oct 2012 18:53:23 +0000 (20:53 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 9 Oct 2012 03:55:22 +0000 (13:55 +1000)
This is needed for automatic fan management where some delays
can be over 0xffffffff ns.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/include/subdev/timer.h
drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c

index 49bff90..c24ec8a 100644 (file)
@@ -26,7 +26,7 @@ void nouveau_timer_alarm(void *, u32 nsec, struct nouveau_alarm *);
 struct nouveau_timer {
        struct nouveau_subdev base;
        u64  (*read)(struct nouveau_timer *);
-       void (*alarm)(struct nouveau_timer *, u32 time, struct nouveau_alarm *);
+       void (*alarm)(struct nouveau_timer *, u64 time, struct nouveau_alarm *);
 };
 
 static inline struct nouveau_timer *
index 49976be..c26ca9b 100644 (file)
@@ -85,7 +85,7 @@ nv04_timer_alarm_trigger(struct nouveau_timer *ptimer)
 }
 
 static void
-nv04_timer_alarm(struct nouveau_timer *ptimer, u32 time,
+nv04_timer_alarm(struct nouveau_timer *ptimer, u64 time,
                 struct nouveau_alarm *alarm)
 {
        struct nv04_timer_priv *priv = (void *)ptimer;