]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nds32: Fix bug in bitfield.h
authorNickhu <nickhu@andestech.com>
Thu, 25 Oct 2018 02:24:14 +0000 (10:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:18 +0000 (09:17 +0100)
[ Upstream commit 9aaafac8cffa1c1edb66e19a63841b7c86be07ca ]

There two bitfield bug for perfomance counter
in bitfield.h:

PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22

This commit fix it.

Signed-off-by: Nickhu <nickhu@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/nds32/include/asm/bitfield.h

index 8e84fc385b946c391b932777d49bb82d05e25598..19b2841219adfeeab42d37edcfb5c8ccd87d68d1 100644 (file)
 #define PFM_CTL_offKU1         13      /* Enable user mode event counting for PFMC1 */
 #define PFM_CTL_offKU2         14      /* Enable user mode event counting for PFMC2 */
 #define PFM_CTL_offSEL0                15      /* The event selection for PFMC0 */
-#define PFM_CTL_offSEL1                21      /* The event selection for PFMC1 */
-#define PFM_CTL_offSEL2                27      /* The event selection for PFMC2 */
+#define PFM_CTL_offSEL1                16      /* The event selection for PFMC1 */
+#define PFM_CTL_offSEL2                22      /* The event selection for PFMC2 */
 /* bit 28:31 reserved */
 
 #define PFM_CTL_mskEN0         ( 0x01  << PFM_CTL_offEN0 )