Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323872
b: refs/heads/master
c: 2f9e97a
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Sep 24, 2012
1 parent b53a797 commit 7802d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d7eb86b9d84e7493c8c835fbcd2a3fe4a1f5937
refs/heads/master: 2f9e97aa8b4c6220c0770a966fb99d7366679813
10 changes: 1 addition & 9 deletions trunk/tools/perf/builtin-kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,16 +664,9 @@ static struct perf_tool eops = {

static int get_cpu_isa(struct perf_session *session)
{
char *cpuid;
char *cpuid = session->header.env.cpuid;
int isa;

cpuid = perf_header__read_feature(session, HEADER_CPUID);

if (!cpuid) {
pr_err("read HEADER_CPUID failed.\n");
return -ENOTSUP;
}

if (strstr(cpuid, "Intel"))
isa = 1;
else if (strstr(cpuid, "AMD"))
Expand All @@ -683,7 +676,6 @@ static int get_cpu_isa(struct perf_session *session)
isa = -ENOTSUP;
}

free(cpuid);
return isa;
}

Expand Down

0 comments on commit 7802d35

Please sign in to comment.