Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261081
b: refs/heads/master
c: 314ff52
h: refs/heads/master
i:
  261079: a108861
v: v3
  • Loading branch information
David S. Miller committed Jul 28, 2011
1 parent cdca3e2 commit cce1e5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 15e3608d7c273947dbf2eadbcaa66e51143928fb
refs/heads/master: 314ff52727fe94dfbe07f3a9a489ab3ca8d8df5a
7 changes: 5 additions & 2 deletions trunk/arch/sparc/kernel/pcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ static void n2_pcr_write(u64 val)
{
unsigned long ret;

ret = sun4v_niagara2_setperf(HV_N2_PERF_SPARC_CTL, val);
if (ret != HV_EOK)
if (val & PCR_N2_HTRACE) {
ret = sun4v_niagara2_setperf(HV_N2_PERF_SPARC_CTL, val);
if (ret != HV_EOK)
write_pcr(val);
} else
write_pcr(val);
}

Expand Down

0 comments on commit cce1e5c

Please sign in to comment.