]> git.pld-linux.org Git - packages/xorg-driver-video-fglrx-legacy.git/blob - xorg-driver-video-fglrx-smp.patch
- release 27 (by relup.sh)
[packages/xorg-driver-video-fglrx-legacy.git] / xorg-driver-video-fglrx-smp.patch
1 --- common/lib/modules/fglrx/build_mod/firegl_public.c.orig     2008-12-04 23:56:18.000000000 +0100
2 +++ common/lib/modules/fglrx/build_mod/firegl_public.c  2008-12-16 10:38:36.413113059 +0100
3 @@ -245,7 +245,7 @@
4  const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
5  #endif
6  
7 -#ifdef __SMP__
8 +#ifdef CONFIG_SMP
9  const unsigned long KCL_SYSINFO_SmpSupport = 1;
10  const char BUILD_KERNEL_HAS_SMP_SET;
11  #else
12 @@ -2503,7 +2503,7 @@
13  
14  /*****************************************************************************/
15  
16 -#ifdef __SMP__
17 +#ifdef CONFIG_SMP
18  static atomic_t cpus_waiting;
19  
20  static void deferred_flush(void* contextp)
21 @@ -2519,7 +2519,7 @@
22         while (atomic_read(&cpus_waiting) > 0)
23                 barrier();
24  }
25 -#endif /* __SMP__ */
26 +#endif /* CONFIG_SMP */
27  
28  /** \brief Run a function on all other CPUs.
29   * \param func The function to run.
30 @@ -2535,7 +2535,7 @@
31  
32  int ATI_API_CALL KCL_MEM_FlushCpuCaches(void)
33  {
34 -#ifdef __SMP__
35 +#ifdef CONFIG_SMP
36      /* write back invalidate all other CPUs (exported by kernel) */
37         if (KCL_SmpCallFunction(deferred_flush, NULL, 1, 0) != 0)
38                 panic("timed out waiting for the other CPUs!\n");
39 @@ -2551,7 +2551,7 @@
40  
41         while (atomic_read(&cpus_waiting) > 0)
42                 barrier();
43 -#else /* !__SMP__ */
44 +#else /* !CONFIG_SMP */
45  #if defined(__i386__) || defined(__x86_64__)
46         asm volatile ("wbinvd":::"memory");
47  #elif defined(__alpha__) || defined(__sparc__)
48 @@ -2559,7 +2559,7 @@
49  #else
50  #error "Please define flush_cache for your architecture."
51  #endif
52 -#endif /* !__SMP__ */
53 +#endif /* !CONFIG_SMP */
54  
55      //for kernel 2.6.25, tlb_flush has been included when calling set_pages_*.
56      #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
This page took 1.001712 seconds and 3 git commands to generate.