Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support atomic_cmpxchg on architectures that define it as a function #63

Merged
merged 1 commit into from
Sep 23, 2012

Conversation

kph
Copy link
Contributor

@kph kph commented Sep 15, 2012

Click uses the C-preprocessor to determine whether an architecture
has defined atomic_cmpxchg. The ARM architecture (among others)
defines this as an inline function, so Click will not attempt
to use atomic_cmpxchg on those architectures. This causes the
warning "using nonatomic approximation..." when building for SMP
on ARM.

Signed-off-by: Kevin Paul Herbert kph@meraki.net

Click uses the C-preprocessor to determine whether an architecture
has defined atomic_cmpxchg. The ARM architecture (among others)
defines this as an inline function, so Click will not attempt
to use atomic_cmpxchg on those architectures. This causes the
warning "using nonatomic approximation..." when building for SMP
on ARM.

Signed-off-by: Kevin Paul Herbert <kph@meraki.net>
@kohler
Copy link
Owner

kohler commented Sep 23, 2012

Awesome, thanks, merged! I'm sorry about the delay on the other request -- it may take some more time to get to it, but I will get to it.

kohler added a commit that referenced this pull request Sep 23, 2012
Support atomic_cmpxchg on architectures that define it as a function
@kohler kohler merged commit 22abd6d into kohler:master Sep 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants