]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: CMP/SMTC: Fix tc_id calculation
authorRongQing.Li <roy.qing.li@gmail.com>
Mon, 2 Jul 2012 04:34:30 +0000 (12:34 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Aug 2012 21:37:32 +0000 (23:37 +0200)
commit8532109950a2f8300e668cfb02be95efaa261d2f
treed5df235de88ae70d9274db9828e86163e8862a09
parenta1dca315ce3f78347bca8ce8befe3cc71ae63b7e
MIPS: CMP/SMTC: Fix tc_id calculation

Currently the tc_id code is:

  (read_c0_tcbind() >> TCBIND_CURTC_SHIFT) & TCBIND_CURTC;

After processing this becomes:

  (read_c0_tcbind() >> 21) & ((0xff) << 21)

But it should be:

  (read_c0_tcbind() & ((0xff)<< 21)) >> 21

Signed-off-by: RongQing.Li <roy.qing.li@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4077/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp-cmp.c