diff options
author | 2007-07-25 11:57:42 +0800 | |
---|---|---|
committer | 2007-07-25 11:57:42 +0800 | |
commit | d5148ffa600e6a655b458bedc593020e0574f967 (patch) | |
tree | e53d7e8c7e18eef3d4fe3077b3f68005d16f9bf0 /arch/blackfin/oprofile | |
parent | Blackfin arch: update BF54x anomaly list (diff) | |
download | linux-d5148ffa600e6a655b458bedc593020e0574f967.tar.gz linux-d5148ffa600e6a655b458bedc593020e0574f967.tar.bz2 linux-d5148ffa600e6a655b458bedc593020e0574f967.zip |
Blackfin arch: use the [CS]SYNC() macros which include anomaly workarounds rather than __builtin_bfin_[cs]sync()
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/oprofile')
-rw-r--r-- | arch/blackfin/oprofile/op_blackfin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/oprofile/op_blackfin.h b/arch/blackfin/oprofile/op_blackfin.h index f88f446c814f..05dd08c9d154 100644 --- a/arch/blackfin/oprofile/op_blackfin.h +++ b/arch/blackfin/oprofile/op_blackfin.h @@ -68,7 +68,7 @@ static inline unsigned int ctr_read(void) unsigned int tmp; tmp = bfin_read_PFCTL(); - __builtin_bfin_csync(); + CSYNC(); return tmp; } @@ -76,21 +76,21 @@ static inline unsigned int ctr_read(void) static inline void ctr_write(unsigned int val) { bfin_write_PFCTL(val); - __builtin_bfin_csync(); + CSYNC(); } static inline void count_read(unsigned int *count) { count[0] = bfin_read_PFCNTR0(); count[1] = bfin_read_PFCNTR1(); - __builtin_bfin_csync(); + CSYNC(); } static inline void count_write(unsigned int *count) { bfin_write_PFCNTR0(count[0]); bfin_write_PFCNTR1(count[1]); - __builtin_bfin_csync(); + CSYNC(); } extern int pm_overflow_handler(int irq, struct pt_regs *regs); |