- prepared for kernel >= 2.6.13: link Module.symvers
[packages/xorg-driver-video-nvidia.git] / X11-driver-nvidia-power-suspend.patch
CommitLineData
74748676
PS
1--- NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c.orig 2004-10-27 18:26:34.998538408 +0200
2+++ NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c 2004-10-27 18:27:13.447693248 +0200
3@@ -3689,9 +3689,16 @@
4 return -1;
5 }
6
7+ // Fix up problems with PM_SAVE_STATE being removed from 2.6.9
8+ #ifdef PM_SAVE_STATE
9+ #define PM_TMP PM_SAVE_STATE
10+ #else
11+ #define PM_TMP PM_SUSPEND
12+ #endif
13+
14 switch (state)
15 {
16- case PM_SAVE_STATE:
17+ case PM_TMP:
18 nv_printf(NV_DBG_INFO, "NVRM: ACPI: received standby event\n");
19 status = rm_power_management(nv, 0, NV_PM_ACPI_STANDBY);
20 break;
This page took 0.224947 seconds and 4 git commands to generate.