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
4 const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
9 const unsigned long KCL_SYSINFO_SmpSupport = 1;
10 const char BUILD_KERNEL_HAS_SMP_SET;
14 /*****************************************************************************/
18 static atomic_t cpus_waiting;
20 static void deferred_flush(void* contextp)
22 while (atomic_read(&cpus_waiting) > 0)
26 +#endif /* CONFIG_SMP */
28 /** \brief Run a function on all other CPUs.
29 * \param func The function to run.
32 int ATI_API_CALL KCL_MEM_FlushCpuCaches(void)
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");
41 while (atomic_read(&cpus_waiting) > 0)
44 +#else /* !CONFIG_SMP */
45 #if defined(__i386__) || defined(__x86_64__)
46 asm volatile ("wbinvd":::"memory");
47 #elif defined(__alpha__) || defined(__sparc__)
50 #error "Please define flush_cache for your architecture."
52 -#endif /* !__SMP__ */
53 +#endif /* !CONFIG_SMP */
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)