Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Formerly unused functi...



details:   https://anonhg.NetBSD.org/src/rev/32d845ceca7c
branches:  trunk
changeset: 834851:32d845ceca7c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:40:56 2018 +0000

description:
Formerly unused functions are no longer unused.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r 6da1236d7d6f -r 32d845ceca7c sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c    Mon Aug 27 06:40:43 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c    Mon Aug 27 06:40:56 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ci_dpm.c,v 1.7 2018/08/27 06:38:10 riastradh Exp $     */
+/*     $NetBSD: ci_dpm.c,v 1.8 2018/08/27 06:40:56 riastradh Exp $     */
 
 /*
  * Copyright 2013 Advanced Micro Devices, Inc.
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ci_dpm.c,v 1.7 2018/08/27 06:38:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ci_dpm.c,v 1.8 2018/08/27 06:40:56 riastradh Exp $");
 
 #include <linux/firmware.h>
 #include "drmP.h"
@@ -185,10 +185,8 @@
                                         struct atom_voltage_table_entry *voltage_table,
                                         u16 *std_voltage_hi_sidd, u16 *std_voltage_lo_sidd);
 static int ci_set_power_limit(struct radeon_device *rdev, u32 n);
-#ifndef __NetBSD__             /* XXX unused? */
 static int ci_set_overdrive_target_tdp(struct radeon_device *rdev,
                                       u32 target_tdp);
-#endif
 static int ci_update_uvd_dpm(struct radeon_device *rdev, bool gate);
 
 static PPSMC_Result ci_send_msg_to_smc_with_parameter(struct radeon_device *rdev,
@@ -743,7 +741,6 @@
                return -EINVAL;
 }
 
-#ifndef __NetBSD__             /* XXX unused? */
 static int ci_power_control_set_level(struct radeon_device *rdev)
 {
        struct ci_power_info *pi = ci_get_pi(rdev);
@@ -765,7 +762,6 @@
 
        return ret;
 }
-#endif
 
 void ci_dpm_powergate_uvd(struct radeon_device *rdev, bool gate)
 {
@@ -1746,7 +1742,6 @@
        return 0;
 }
 
-#ifndef __NetBSD__             /* XXX unused? */
 static int ci_set_overdrive_target_tdp(struct radeon_device *rdev,
                                       u32 target_tdp)
 {
@@ -1756,7 +1751,6 @@
                return -EINVAL;
        return 0;
 }
-#endif
 
 #if 0
 static int ci_set_boot_state(struct radeon_device *rdev)



Home | Main Index | Thread Index | Old Index