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

lscpu: Decode ARM CPUs #564

Merged
merged 1 commit into from Jan 22, 2018
Merged

lscpu: Decode ARM CPUs #564

merged 1 commit into from Jan 22, 2018

Conversation

@suihkulokki
Copy link
Contributor

@suihkulokki suihkulokki commented Jan 19, 2018

Since the kernel developers have refused to make /proc/cpuinfo user
understandable, implement mapping in userspace. lscpu is available for
most users via util-linux, so store the information here.

Signed-off-by: Riku Voipio riku.voipio@iki.fi

else if (lookup(buf, "family", &desc->family)) ;
else if (lookup(buf, "cpu family", &desc->family)) ;
else if (lookup(buf, "model", &desc->model)) ;
else if (lookup(buf, "CPU part", &desc->model)) ; /* ARM and aarch6 */

This comment has been minimized.

@rudimeier

rudimeier Jan 19, 2018
Contributor

Probably also "aarch64" here, not "aarch6"?

This comment has been minimized.

@suihkulokki

suihkulokki Jan 19, 2018
Author Contributor

fixed - and added the missing Makemodule.am bit to hopefully fix make dist

Since the kernel developers have refused to make /proc/cpuinfo user
understandable, implement mapping in userspace. lscpu is available for
most users via util-linux, so store the information here.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
@suihkulokki suihkulokki force-pushed the suihkulokki:arm-cpus branch from 704d096 to 744d62e Jan 19, 2018
@karelzak karelzak merged commit 744d62e into karelzak:master Jan 22, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@karelzak
Copy link
Owner

@karelzak karelzak commented Jan 22, 2018

I have moved all the new ARM stuff to lscpu-arm.c (rename from .h).

Thanks.

@vielmetti

This comment has been minimized.

Copy link

@vielmetti vielmetti commented on 744d62e Feb 13, 2018

Relevant data for google/cpu_features#26

@ramcq

This comment has been minimized.

This comment has been minimized.

Copy link
Owner

@karelzak karelzak replied Apr 12, 2018

Fixed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.