From c0775734fd16ab18c34bd938e0b404640e50d459 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 1 Jan 2012 08:47:07 +1100 Subject: [PATCH] Again do not attempt to restart a hung device with the every minute attempted restart. --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 30da2b88..747d79f7 100644 --- a/main.c +++ b/main.c @@ -5329,6 +5329,11 @@ static void *watchdog_thread(void *userdata) } else if (now.tv_sec - thr->sick.tv_sec > 60 && gpus[i].status == LIFE_SICK) { /* Attempt to restart a GPU once every minute */ gettimeofday(&thr->sick, NULL); +#ifdef HAVE_ADL + if (adl_active && gpus[gpu].has_adl && gpu_activity(gpu) > 50) { + /* Again do not attempt to restart a device that may have hard hung */ + } else +#endif if (opt_restart) reinit_device(thr->cgpu); }