Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:galquezar
ati-fglrxG02
ati-CONFIG_SMP.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ati-CONFIG_SMP.diff of Package ati-fglrxG02
--- firegl_public.c.orig 2009-02-04 17:57:01.000000000 +1100 +++ firegl_public.c 2009-02-11 11:50:07.000000000 +1100 @@ -245,7 +245,7 @@ const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED; #endif -#ifdef __SMP__ +#if CONFIG_SMP const unsigned long KCL_SYSINFO_SmpSupport = 1; const char BUILD_KERNEL_HAS_SMP_SET; #else @@ -2503,7 +2503,7 @@ /*****************************************************************************/ -#ifdef __SMP__ +#if CONFIG_SMP static atomic_t cpus_waiting; static void deferred_flush(void* contextp) @@ -2519,7 +2519,7 @@ while (atomic_read(&cpus_waiting) > 0) barrier(); } -#endif /* __SMP__ */ +#endif /* CONFIG_SMP */ /** \brief Run a function on all other CPUs. * \param func The function to run. @@ -2535,7 +2535,7 @@ int ATI_API_CALL KCL_MEM_FlushCpuCaches(void) { -#ifdef __SMP__ +#if CONFIG_SMP /* write back invalidate all other CPUs (exported by kernel) */ if (KCL_SmpCallFunction(deferred_flush, NULL, 1, 0) != 0) panic("timed out waiting for the other CPUs!\n"); @@ -2551,7 +2551,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(__sparc__) @@ -2559,7 +2559,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)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor