Skip to content

Commit

Permalink
drm/nouveau/timer: bump ptimer's alarm delay from u32 to u64
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Peres authored and Ben Skeggs committed Oct 9, 2012
1 parent bbebb4e commit 11573aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/include/subdev/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11573aa

Please sign in to comment.