Magellan Linux

Contents of /trunk/nvidia/1.0.6629/nv-disable-preempt-on-smp_processor_id.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 435 byte(s)
-import

1 --- usr/src/nv/nv.c.orig 2004-12-27 11:38:13.298374416 +1100
2 +++ usr/src/nv/nv.c 2004-12-27 11:42:48.876480176 +1100
3 @@ -2814,6 +2814,7 @@
4 int cpu;
5
6 nvl = NV_GET_NVL_FROM_NV_STATE(nv);
7 + preempt_disable();
8 cpu = get_cpu();
9
10 if (nvl->rm_lock_cpu == cpu)
11 @@ -2829,6 +2830,7 @@
12
13 nvl->rm_lock_cpu = smp_processor_id();
14 nvl->rm_lock_count = 1;
15 + preempt_enable();
16 }
17
18 void NV_API_CALL nv_unlock_rm(

Properties

Name Value
svn:executable *