]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Netlogic: Fix nlm_xlp2_get_pic_frequency to use ref_div
authorQingmin Liu <qingmin@broadcom.com>
Wed, 7 Jan 2015 11:28:23 +0000 (16:58 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:48 +0000 (17:21 +0200)
commit4bd0473ea4bd50436f857931283d1adffb0b994d
tree4e957d8532efb24cbffba41c8cfdff549234944d
parent9ee149e50d911cf30704df7b771994f4194235d7
MIPS: Netlogic: Fix nlm_xlp2_get_pic_frequency to use ref_div

The variable ref_div is initialized to the correct divisor but not
used in the frequency calculation. This caused incorrect frequency
to be reported when the clock divisor is not 3.

Signed-off-by: Qingmin Liu <qingmin@broadcom.com>
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8884/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/netlogic/xlp/nlm_hal.c