Displaying 19 results from an estimated 19 matches for "__sync_bool_compare_and_swap".
Did you mean:
__sync_bool_compare_and_swap_4
2008 Jul 30
2
[LLVMdev] More llvm-gcc build breakage
...rom ../../../gcc-4.2.llvm/libgomp/libgomp.h:50,
from ../../../gcc-4.2.llvm/libgomp/alloc.c:32:
../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function 'gomp_sem_wait':
../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:45: error: incompatible type for argument 1 of '__sync_bool_compare_and_swap'
../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function 'gomp_sem_post':
../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:52: error: incompatible type for argument 1 of '__sync_bool_compare_and_swap'
In file included from ../../../gcc-4.2.llvm/libgomp/libgomp.h:51,...
2008 Jul 30
0
[LLVMdev] More llvm-gcc build breakage
...bgomp/libgomp.h:50,
> from ../../../gcc-4.2.llvm/libgomp/alloc.c:32:
> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function
> 'gomp_sem_wait':
> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:45: error:
> incompatible type for argument 1 of '__sync_bool_compare_and_swap'
> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function
> 'gomp_sem_post':
> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:52: error:
> incompatible type for argument 1 of '__sync_bool_compare_and_swap'
> In file included from ../../../gcc-4.2.llvm...
2008 Jul 30
2
[LLVMdev] More llvm-gcc build breakage
...> from ../../../gcc-4.2.llvm/libgomp/alloc.c:32:
> > ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function
> > 'gomp_sem_wait':
> > ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:45: error:
> > incompatible type for argument 1 of '__sync_bool_compare_and_swap'
> > ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function
> > 'gomp_sem_post':
> > ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:52: error:
> > incompatible type for argument 1 of '__sync_bool_compare_and_swap'
> > In file included f...
2008 Jul 30
0
[LLVMdev] More llvm-gcc build breakage
...from ../../../gcc-4.2.llvm/libgomp/alloc.c:32:
>>> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function
>>> 'gomp_sem_wait':
>>> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:45: error:
>>> incompatible type for argument 1 of '__sync_bool_compare_and_swap'
>>> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h: In function
>>> 'gomp_sem_post':
>>> ../../../gcc-4.2.llvm/libgomp/config/linux/sem.h:52: error:
>>> incompatible type for argument 1 of '__sync_bool_compare_and_swap'
>>> In file...
2009 Mar 18
3
[LLVMdev] Status of LLVM's atomic intrinsics
...nt(): thread %ld, count = %d Threshold reached.\n",
my_id, count2);
pthread_mutex_unlock(&count_mutex);
}
if (count2 & (count2 - 1) == 0)
printf("inc_count(): thread %ld, count = %d\n",
my_id, count);
//free(data);
//if (!__sync_bool_compare_and_swap(&count, oldval, newval))
/* Do some "work" so threads can alternate on mutex lock */
//fflush(stdout);
//usleep(1);
}
printf("inc_count(): thread %ld exit\n", my_id);
pthread_exit(NULL);
}
void *watch_count(void *t)
{
long my_id = (long)t;
printf(...
2016 Oct 19
2
[PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted
...390/include/asm/spinlock.h b/arch/s390/include/asm/spinlock.h
> index 63ebf37..e16e02f 100644
> --- a/arch/s390/include/asm/spinlock.h
> +++ b/arch/s390/include/asm/spinlock.h
> @@ -21,6 +21,9 @@ _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new)
> return __sync_bool_compare_and_swap(lock, old, new);
> }
>
> +bool arch_vcpu_is_preempted(int cpu);
> +#define vcpu_is_preempted arch_vcpu_is_preempted
> +
> /*
> * Simple spin lock operations. There are two variants, one clears IRQ's
> * on the local processor, one does not.
> diff --git a/arch...
2016 Oct 19
2
[PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted
...390/include/asm/spinlock.h b/arch/s390/include/asm/spinlock.h
> index 63ebf37..e16e02f 100644
> --- a/arch/s390/include/asm/spinlock.h
> +++ b/arch/s390/include/asm/spinlock.h
> @@ -21,6 +21,9 @@ _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new)
> return __sync_bool_compare_and_swap(lock, old, new);
> }
>
> +bool arch_vcpu_is_preempted(int cpu);
> +#define vcpu_is_preempted arch_vcpu_is_preempted
> +
> /*
> * Simple spin lock operations. There are two variants, one clears IRQ's
> * on the local processor, one does not.
> diff --git a/arch...
2016 Oct 04
0
[PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted
...gt;>>> index 63ebf37..e16e02f 100644
>>>> --- a/arch/s390/include/asm/spinlock.h
>>>> +++ b/arch/s390/include/asm/spinlock.h
>>>> @@ -21,6 +21,9 @@ _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new)
>>>> return __sync_bool_compare_and_swap(lock, old, new);
>>>> }
>>>>
>>>> +bool arch_vcpu_is_preempted(int cpu);
>>>> +#define vcpu_is_preempted arch_vcpu_is_preempted
>>>> +
>>>> /*
>>>> * Simple spin lock operations. There are two variants, one cle...
2016 Oct 04
0
[PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted
...gt;>>> index 63ebf37..e16e02f 100644
>>>> --- a/arch/s390/include/asm/spinlock.h
>>>> +++ b/arch/s390/include/asm/spinlock.h
>>>> @@ -21,6 +21,9 @@ _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new)
>>>> return __sync_bool_compare_and_swap(lock, old, new);
>>>> }
>>>>
>>>> +bool arch_vcpu_is_preempted(int cpu);
>>>> +#define vcpu_is_preempted arch_vcpu_is_preempted
>>>> +
>>>> /*
>>>> * Simple spin lock operations. There are two variants, one cle...
2009 Mar 18
0
[LLVMdev] Status of LLVM's atomic intrinsics
...reached.\n",
> my_id, count2);
> pthread_mutex_unlock(&count_mutex);
> }
> if (count2 & (count2 - 1) == 0)
> printf("inc_count(): thread %ld, count = %d\n",
> my_id, count);
> //free(data);
> //if (!__sync_bool_compare_and_swap(&count, oldval, newval))
>
> /* Do some "work" so threads can alternate on mutex lock */
> //fflush(stdout);
> //usleep(1);
> }
> printf("inc_count(): thread %ld exit\n", my_id);
> pthread_exit(NULL);
> }
>
> void *watch_co...
2016 Oct 19
1
[PATCH v3] s390/spinlock: Provide vcpu_is_preempted
...(-)
diff --git a/arch/s390/include/asm/spinlock.h b/arch/s390/include/asm/spinlock.h
index 7e9e09f..7ecd890 100644
--- a/arch/s390/include/asm/spinlock.h
+++ b/arch/s390/include/asm/spinlock.h
@@ -23,6 +23,14 @@ _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new)
return __sync_bool_compare_and_swap(lock, old, new);
}
+#ifndef CONFIG_SMP
+static inline bool arch_vcpu_is_preempted(int cpu) { return false; }
+#else
+bool arch_vcpu_is_preempted(int cpu);
+#endif
+
+#define vcpu_is_preempted arch_vcpu_is_preempted
+
/*
* Simple spin lock operations. There are two variants, one clears IRQ...
2016 Oct 19
1
[PATCH v3] s390/spinlock: Provide vcpu_is_preempted
...(-)
diff --git a/arch/s390/include/asm/spinlock.h b/arch/s390/include/asm/spinlock.h
index 7e9e09f..7ecd890 100644
--- a/arch/s390/include/asm/spinlock.h
+++ b/arch/s390/include/asm/spinlock.h
@@ -23,6 +23,14 @@ _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new)
return __sync_bool_compare_and_swap(lock, old, new);
}
+#ifndef CONFIG_SMP
+static inline bool arch_vcpu_is_preempted(int cpu) { return false; }
+#else
+bool arch_vcpu_is_preempted(int cpu);
+#endif
+
+#define vcpu_is_preempted arch_vcpu_is_preempted
+
/*
* Simple spin lock operations. There are two variants, one clears IRQ...
2020 May 22
0
Wine release 5.9
..._WORK_DONE error for empty string.
uninstaller: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty string.
xcopy: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty string.
ntdll: Initialize server directory on macOS when sending Mach port.
ntdll: Fix __sync_bool_compare_and_swap() usage.
ntdll: Handle already relocated .dynamic entries.
winegcc: Allow the output file to end in .so.
makefiles: Add support for building Unix .so libraries.
ntdll: Initial version of the ntdll.so Unix library.
ntdll: Allow ntdll.so to be loaded before wine_init() h...
2016 Oct 20
15
[PATCH v5 0/9] implement vcpu preempted check
change from v4:
spilt x86 kvm vcpu preempted check into two patches.
add documentation patch.
add x86 vcpu preempted check patch under xen
add s390 vcpu preempted check patch
change from v3:
add x86 vcpu preempted check patch
change from v2:
no code change, fix typos, update some comments
change from v1:
a simplier definition of default vcpu_is_preempted
skip mahcine type check on ppc,
2016 Oct 20
15
[PATCH v5 0/9] implement vcpu preempted check
change from v4:
spilt x86 kvm vcpu preempted check into two patches.
add documentation patch.
add x86 vcpu preempted check patch under xen
add s390 vcpu preempted check patch
change from v3:
add x86 vcpu preempted check patch
change from v2:
no code change, fix typos, update some comments
change from v1:
a simplier definition of default vcpu_is_preempted
skip mahcine type check on ppc,
2016 Nov 02
13
[PATCH v7 00/11] implement vcpu preempted check
change from v6:
fix typos and remove uncessary comments.
change from v5:
spilt x86/kvm patch into guest/host part.
introduce kvm_write_guest_offset_cached.
fix some typos.
rebase patch onto 4.9.2
change from v4:
spilt x86 kvm vcpu preempted check into two patches.
add documentation patch.
add x86 vcpu preempted check patch under xen
add s390 vcpu preempted check patch
change from v3:
2016 Nov 02
13
[PATCH v7 00/11] implement vcpu preempted check
change from v6:
fix typos and remove uncessary comments.
change from v5:
spilt x86/kvm patch into guest/host part.
introduce kvm_write_guest_offset_cached.
fix some typos.
rebase patch onto 4.9.2
change from v4:
spilt x86 kvm vcpu preempted check into two patches.
add documentation patch.
add x86 vcpu preempted check patch under xen
add s390 vcpu preempted check patch
change from v3:
2016 Oct 28
16
[PATCH v6 00/11] implement vcpu preempted check
change from v5:
spilt x86/kvm patch into guest/host part.
introduce kvm_write_guest_offset_cached.
fix some typos.
rebase patch onto 4.9.2
change from v4:
spilt x86 kvm vcpu preempted check into two patches.
add documentation patch.
add x86 vcpu preempted check patch under xen
add s390 vcpu preempted check patch
change from v3:
add x86 vcpu preempted check patch
change from v2:
no code
2016 Oct 28
16
[PATCH v6 00/11] implement vcpu preempted check
change from v5:
spilt x86/kvm patch into guest/host part.
introduce kvm_write_guest_offset_cached.
fix some typos.
rebase patch onto 4.9.2
change from v4:
spilt x86 kvm vcpu preempted check into two patches.
add documentation patch.
add x86 vcpu preempted check patch under xen
add s390 vcpu preempted check patch
change from v3:
add x86 vcpu preempted check patch
change from v2:
no code