Skip to content

Commit

Permalink
drm: remove writeq/readq function definitions
Browse files Browse the repository at this point in the history
Instead of rewriting write/readq, use linux/io-64-nonatomic-lo-hi.h which
already have them.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170602112510.17544-1-clabbe.montjoie@gmail.com
  • Loading branch information
Corentin Labbe authored and Sean Paul committed Jun 2, 2017
1 parent a57bf53 commit 71ae3df
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions include/drm/drm_os_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@
#include <linux/interrupt.h> /* For task queue support */
#include <linux/sched/signal.h>
#include <linux/delay.h>

#ifndef readq
static inline u64 readq(void __iomem *reg)
{
return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32);
}

static inline void writeq(u64 val, void __iomem *reg)
{
writel(val & 0xffffffff, reg);
writel(val >> 32, reg + 0x4UL);
}
#endif
#include <linux/io-64-nonatomic-lo-hi.h>

/** Current process ID */
#define DRM_CURRENTPID task_pid_nr(current)
Expand Down

0 comments on commit 71ae3df

Please sign in to comment.