mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-09 14:28:12 +00:00
Reinit_adl is no longer used.
This commit is contained in:
parent
85c9e0c4b6
commit
23b224faf9
13
adl.c
13
adl.c
@ -1379,17 +1379,4 @@ void clear_adl(int nDevs)
|
|||||||
unlock_adl();
|
unlock_adl();
|
||||||
free_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 */
|
#endif /* HAVE_ADL */
|
||||||
|
2
adl.h
2
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 change_gpusettings(int gpu);
|
||||||
void gpu_autotune(int gpu, enum dev_enable *denable);
|
void gpu_autotune(int gpu, enum dev_enable *denable);
|
||||||
void clear_adl(int nDevs);
|
void clear_adl(int nDevs);
|
||||||
void reinit_adl(void);
|
|
||||||
#else /* HAVE_ADL */
|
#else /* HAVE_ADL */
|
||||||
#define adl_active (0)
|
#define adl_active (0)
|
||||||
static inline void init_adl(int nDevs) {}
|
static inline void init_adl(int nDevs) {}
|
||||||
static inline void change_gpusettings(int gpu) { }
|
static inline void change_gpusettings(int gpu) { }
|
||||||
static inline void clear_adl(int nDevs) {}
|
static inline void clear_adl(int nDevs) {}
|
||||||
static inline void reinit_adl(void) {}
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user