ddr: fix bandwidth read result 0 on 32bit OS [1/1]
authortao zeng <tao.zeng@amlogic.com>
Mon, 29 Oct 2018 04:11:18 +0000 (12:11 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 30 Oct 2018 01:42:53 +0000 (18:42 -0700)
commit8b2c5df07ab866e3a5dd229532649a2c65073f40
tree608328968537e710df6cfacd1d62c727de16b2a2
parentd351b585a50066b089e51367277645c2ce04bb1b
ddr: fix bandwidth read result 0 on 32bit OS [1/1]

PD#SWPL-960

Problem:
Reading bandwidth of DDR from sysfs get all 0 result on 32
bit kernel

Solution:
Fix overflow when calculating bandwidth.

Verify:
P212

Change-Id: I35837db653bdc2d97ced98689546a9ffc0db21c7
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
drivers/amlogic/ddr_tool/ddr_bandwidth.c