Skip to content

Commit 4a790f6

Browse files
author
Venkatesh Srinivas
authored
Merge pull request #13 from prekageo/master
Add support for aarch64 CPUs
2 parents 3caa798 + 33c09ba commit 4a790f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpuinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int get_cpuinfo(struct cpuinfo *cpus, int max_cpus, struct callbacks *cb)
5353
*/
5454
if (m == 2) {
5555
rtrim(key);
56-
#if defined(__powerpc__)
56+
#if defined(__powerpc__) || defined(__aarch64__)
5757
if (strcmp(ltrim(key), "processor") == 0) {
5858
sscanf(value, "%d", &cpus[n].processor);
5959
n++;

0 commit comments

Comments
 (0)