]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Fixup csky_pmu.max_period assignment
authorMao Han <han_mao@c-sky.com>
Wed, 25 Sep 2019 09:23:02 +0000 (17:23 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 30 Sep 2019 02:26:33 +0000 (10:26 +0800)
commita59da074ef0ae4e288646b3106a55ecdece1173f
tree223e7acd6759948b7561d310b447ae766dd795a6
parent2562a3d6ec76bddc0dda8d2d008a78062d9d0acb
csky: Fixup csky_pmu.max_period assignment

The csky_pmu.max_period has type u64, and BIT() can only return
32 bits unsigned long on C-SKY. The initialization for max_period
will be incorrect when count_width is bigger than 32.

Use BIT_ULL()

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
arch/csky/kernel/perf_event.c