SOURCES: xorg-driver-video-fglrx-smp.patch (NEW) - s/__SMP__/CONFIG_SMP/

pluto pluto at pld-linux.org
Thu Jun 26 22:05:48 CEST 2008


Author: pluto                        Date: Thu Jun 26 20:05:47 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- s/__SMP__/CONFIG_SMP/

---- Files affected:
SOURCES:
   xorg-driver-video-fglrx-smp.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/xorg-driver-video-fglrx-smp.patch
diff -u /dev/null SOURCES/xorg-driver-video-fglrx-smp.patch:1.1
--- /dev/null	Thu Jun 26 22:05:48 2008
+++ SOURCES/xorg-driver-video-fglrx-smp.patch	Thu Jun 26 22:05:42 2008
@@ -0,0 +1,61 @@
+--- lib/modules/fglrx/build_mod/firegl_public.c.orig	2008-06-16 23:50:47.000000000 +0200
++++ lib/modules/fglrx/build_mod/firegl_public.c	2008-06-26 20:55:00.000000000 +0200
+@@ -259,7 +259,7 @@
+ const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
+ #endif
+ 
+-#ifdef __SMP__
++#ifdef CONFIG_SMP
+ const unsigned long __ke_SMP_State = 1;
+ const char BUILD_KERNEL_HAS_SMP_SET;
+ #else
+@@ -2592,7 +2592,7 @@
+ {
+ /*Some kernel developer removed the export of symbol "flush_tlb_page" on 2.6.25 x86_64 SMP kernel.
+   Define a simple version here.*/
+-#if defined(__x86_64__) && defined(__SMP__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) 
++#if defined(__x86_64__) && defined(CONFIG_SMP) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) 
+     on_each_cpu(KCL_flush_tlb_one, &va, 1, 1);
+ #else
+     flush_tlb_page(vma, va);
+@@ -2949,7 +2949,7 @@
+ 
+ /*****************************************************************************/
+ 
+-#ifdef __SMP__
++#ifdef CONFIG_SMP
+ static atomic_t cpus_waiting;
+ 
+ static void deferred_flush(void* contextp)
+@@ -2965,11 +2965,11 @@
+ 	while (atomic_read(&cpus_waiting) > 0)
+ 		barrier();
+ }
+-#endif /* __SMP__ */
++#endif /* CONFIG_SMP */
+ 
+ int ATI_API_CALL __ke_flush_cache(void)
+ {
+-#ifdef __SMP__
++#ifdef CONFIG_SMP
+     /* write back invalidate all other CPUs (exported by kernel) */
+ 	if (smp_call_function(deferred_flush, NULL, 1, 0) != 0)
+ 		panic("timed out waiting for the other CPUs!\n");
+@@ -2985,7 +2985,7 @@
+ 
+ 	while (atomic_read(&cpus_waiting) > 0)
+ 		barrier();
+-#else /* !__SMP__ */
++#else /* !CONFIG_SMP */
+ #if defined(__i386__) || defined(__x86_64__)
+ 	asm volatile ("wbinvd":::"memory");
+ #elif defined(__alpha__) || defined(__ia64__) || defined(__sparc__)
+@@ -2993,7 +2993,7 @@
+ #else
+ #error "Please define flush_cache for your architecture."
+ #endif
+-#endif /* !__SMP__ */
++#endif /* !CONFIG_SMP */
+ 
+     //for kernel 2.6.25, tlb_flush has been included when calling set_pages_*.
+     #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
================================================================


More information about the pld-cvs-commit mailing list