diff options
Diffstat (limited to 'sys-power/cpufreqd/files/cpufreqd-2.0.0-pre1-nv.patch')
-rw-r--r-- | sys-power/cpufreqd/files/cpufreqd-2.0.0-pre1-nv.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sys-power/cpufreqd/files/cpufreqd-2.0.0-pre1-nv.patch b/sys-power/cpufreqd/files/cpufreqd-2.0.0-pre1-nv.patch deleted file mode 100644 index ef077e3445ca..000000000000 --- a/sys-power/cpufreqd/files/cpufreqd-2.0.0-pre1-nv.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff -urp cpufreqd-2.0.0-pre1/src/cpufreqd_nvclock.c cpufreqd-2.0.0-pre1-nv/src/cpufreqd_nvclock.c ---- cpufreqd-2.0.0-pre1/src/cpufreqd_nvclock.c 2005-09-24 20:13:53.000000000 +0200 -+++ cpufreqd-2.0.0-pre1-nv/src/cpufreqd_nvclock.c 2005-10-17 10:08:19.000000000 +0200 -@@ -107,10 +107,9 @@ static void nvcore_change(void *obj, con - if (nv->card < nvclock.num_cards) { - clog(LOG_INFO, "Setting nv_core for card %i to (%u)\n", nv->card, nv->value); - set_card(nv->card); -- nvclock.card[nv->card].gpu = DESKTOP; -- nv_card.number = -1; /* Force a re-init of the function pointers */ -- set_card(nv->card); -- nv_card.set_gpu_speed(nv->value); -+ if(nv_card.supported & GPU_OVERCLOCKING_SUPPORTED) -+ nv_card.set_gpu_speed(nv->value); -+ unset_card(nv->card); - } - } - -@@ -120,10 +119,9 @@ static void nvmem_change(void *obj, cons - if (nv->card < nvclock.num_cards) { - clog(LOG_INFO, "Setting nv_mem for card %i to (%u)\n", nv->card, nv->value); - set_card(nv->card); -- nvclock.card[nv->card].gpu = DESKTOP; -- nv_card.number = -1; /* Force a re-init of the function pointers */ -- set_card(nv->card); -- nv_card.set_memory_speed(nv->value); -+ if(nv_card.supported & MEM_OVERCLOCKING_SUPPORTED) -+ nv_card.set_memory_speed(nv->value); -+ unset_card(nv->card); - } - } - |