Reinit_adl is no longer used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/adl.c b/adl.c
index b2c00fc..837f24c 100644
--- a/adl.c
+++ b/adl.c
@@ -1379,17 +1379,4 @@ void clear_adl(int nDevs)
unlock_adl();
free_adl();
}
-
-void reinit_adl(void)
-{
- bool ret;
- lock_adl();
- free_adl();
- ret = prepare_adl();
- if (!ret) {
- adl_active = false;
- applog(LOG_WARNING, "Attempt to re-initialise ADL has failed, disabling");
- }
- unlock_adl();
-}
#endif /* HAVE_ADL */
diff --git a/adl.h b/adl.h
index 363741c..f48c420 100644
--- a/adl.h
+++ b/adl.h
@@ -19,12 +19,10 @@ bool gpu_stats(int gpu, float *temp, int *engineclock, int *memclock, float *vdd
void change_gpusettings(int gpu);
void gpu_autotune(int gpu, enum dev_enable *denable);
void clear_adl(int nDevs);
-void reinit_adl(void);
#else /* HAVE_ADL */
#define adl_active (0)
static inline void init_adl(int nDevs) {}
static inline void change_gpusettings(int gpu) { }
static inline void clear_adl(int nDevs) {}
-static inline void reinit_adl(void) {}
#endif
#endif