Commit 11573aa7 authored by Martin Peres's avatar Martin Peres Committed by Ben Skeggs

drm/nouveau/timer: bump ptimer's alarm delay from u32 to u64

This is needed for automatic fan management where some delays
can be over 0xffffffff ns.
Signed-off-by: default avatarMartin Peres <martin.peres@labri.fr>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent bbebb4eb
...@@ -26,7 +26,7 @@ void nouveau_timer_alarm(void *, u32 nsec, struct nouveau_alarm *); ...@@ -26,7 +26,7 @@ void nouveau_timer_alarm(void *, u32 nsec, struct nouveau_alarm *);
struct nouveau_timer { struct nouveau_timer {
struct nouveau_subdev base; struct nouveau_subdev base;
u64 (*read)(struct nouveau_timer *); 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 * static inline struct nouveau_timer *
......
...@@ -85,7 +85,7 @@ nv04_timer_alarm_trigger(struct nouveau_timer *ptimer) ...@@ -85,7 +85,7 @@ nv04_timer_alarm_trigger(struct nouveau_timer *ptimer)
} }
static void 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 nouveau_alarm *alarm)
{ {
struct nv04_timer_priv *priv = (void *)ptimer; struct nv04_timer_priv *priv = (void *)ptimer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment