summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_kms.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-01-24 10:35:23 -0500
committerAlex Deucher <alexander.deucher@amd.com>2013-02-20 08:51:21 -0500
commitd0418894142f88041d2b7b5aa4f8bf3178d89514 (patch)
tree4f5fd10c72b8ea4203535a11731db50a36911e81 /drivers/gpu/drm/radeon/radeon_kms.c
parent454d2e2a32f02a4f8e0364ba0e8ce4f8dbe9810c (diff)
downloadtalos-obmc-linux-d0418894142f88041d2b7b5aa4f8bf3178d89514.tar.gz
talos-obmc-linux-d0418894142f88041d2b7b5aa4f8bf3178d89514.zip
drm/radeon: switch get_gpu_clock() to a callback (v2)
Cleans up the code for future asics v2: rebase, fix some missing radeon_asic updates Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_kms.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_kms.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index 96f05cde116a..c75cb2c6ba71 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -185,11 +185,7 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
if (info->request == RADEON_INFO_TIMESTAMP) {
if (rdev->family >= CHIP_R600) {
value_ptr64 = (uint64_t*)((unsigned long)info->value);
- if (rdev->family >= CHIP_TAHITI) {
- value64 = si_get_gpu_clock(rdev);
- } else {
- value64 = r600_get_gpu_clock(rdev);
- }
+ value64 = radeon_get_gpu_clock_counter(rdev);
if (DRM_COPY_TO_USER(value_ptr64, &value64, sizeof(value64))) {
DRM_ERROR("copy_to_user %s:%u\n", __func__, __LINE__);
OpenPOWER on IntegriCloud