-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 92310 b: refs/heads/master c: 764cb81 h: refs/heads/master v: v3
- Loading branch information
Mike Frysinger
authored and
Bryan Wu
committed
Apr 23, 2008
1 parent
5fdfd66
commit 858f560
Showing
3 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 8cab0288c6376b9c00155b0802cbe84118d1ba89 | ||
refs/heads/master: 764cb81cdc0620711d2cef5d06e9ef03c9d84184 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
/* blackfin architecture timex specifications: Lineo Inc. 2001 | ||
/* | ||
* asm-blackfin/timex.h: cpu cycles! | ||
* | ||
* Based on: include/asm-m68knommu/timex.h | ||
* Copyright 2004-2008 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2 or later. | ||
*/ | ||
|
||
#ifndef _ASMBLACKFIN_TIMEX_H | ||
#define _ASMBLACKFIN_TIMEX_H | ||
#ifndef _ASM_BLACKFIN_TIMEX_H | ||
#define _ASM_BLACKFIN_TIMEX_H | ||
|
||
#define CLOCK_TICK_RATE 1000000 /* Underlying HZ */ | ||
|
||
typedef unsigned long cycles_t; | ||
typedef unsigned long long cycles_t; | ||
|
||
static inline cycles_t get_cycles(void) | ||
{ | ||
return 0; | ||
unsigned long tmp, tmp2; | ||
__asm__("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2)); | ||
return tmp | ((cycles_t)tmp2 << 32); | ||
} | ||
|
||
#endif |