Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a7faa8dc95ef90593d605d36409ef9100bdd11f8
Commit:     a7faa8dc95ef90593d605d36409ef9100bdd11f8
Parent:     79ccd1bedc0592602183dad5e3d51d0ab7a9add0
Author:     Takashi Yamamoto <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 9 09:52:30 2008 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Feb 14 22:11:00 2008 +1100

    [POWERPC] PS3: Fix setting bookmark in logical performance monitor
    
    Fix the ps3_set_bookmark() routine of the PS3 logical performance
    monitor driver.
    
    To properly set a performance monitor bookmark the Cell processor
    requires no instruction branches near the setting of the bookmark
    SPR.  Testing showed that the use of the db10cyc instruction did
    not work correctly.  This change replaces the db10cyc instruction
    with 10 nop instructions.
    
    Signed-off-by: Takashi Yamamoto <[EMAIL PROTECTED]>
    Signed-off-by: Geoff Levand <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 drivers/ps3/ps3-lpm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c
index 4c06654..8a0b16b 100644
--- a/drivers/ps3/ps3-lpm.c
+++ b/drivers/ps3/ps3-lpm.c
@@ -181,9 +181,9 @@ void ps3_set_bookmark(u64 bookmark)
         * includes cycles before the call.
         */
 
-       asm volatile("or 29, 29, 29;"); /* db10cyc */
+       asm volatile("nop;nop;nop;nop;nop;nop;nop;nop;nop;");
        mtspr(SPRN_BKMK, bookmark);
-       asm volatile("or 29, 29, 29;"); /* db10cyc */
+       asm volatile("nop;nop;nop;nop;nop;nop;nop;nop;nop;");
 }
 EXPORT_SYMBOL_GPL(ps3_set_bookmark);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to