Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54000
b: refs/heads/master
c: 8903fcc
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and Russell King committed Apr 30, 2007
1 parent 25084d7 commit cb54559
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 210 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: ff4bfb2163e8914332267be3758eb28239460316
refs/heads/master: 8903fcce9b91bab6bb98adbb57a4edfc372c8bff
8 changes: 4 additions & 4 deletions trunk/arch/arm/plat-iop/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ static unsigned long next_jiffy_time;

unsigned long iop_gettimeoffset(void)
{
unsigned long offset, temp1, temp2;
unsigned long offset, temp;

/* enable cp6, if necessary, to avoid taking the overhead of an
* undefined instruction trap
*/
asm volatile (
"mrc p15, 0, %0, c15, c1, 0\n\t"
"ands %1, %0, #(1 << 6)\n\t"
"tst %0, #(1 << 6)\n\t"
"orreq %0, %0, #(1 << 6)\n\t"
"mcreq p15, 0, %0, c15, c1, 0\n\t"
#ifdef CONFIG_XSCALE
#ifdef CONFIG_CPU_XSCALE
"mrceq p15, 0, %0, c15, c1, 0\n\t"
"moveq %0, %0\n\t"
"subeq pc, pc, #4\n\t"
#endif
: "=r"(temp1), "=r"(temp2) : : "cc");
: "=r"(temp) : : "cc");

offset = next_jiffy_time - read_tcr1();

Expand Down
Loading

0 comments on commit cb54559

Please sign in to comment.