mirror of
https://github.com/linux-msm/debugcc.git
synced 2026-02-25 13:12:32 -08:00
debugcc: support 32 bit systems
Unsigned long have a different size in 32 bit system and this cause the malfunction of debugcc returning wrong frequency. Use 64bit unsigned int to correctly support 32 bit system and provide correct frequency. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
@@ -116,8 +116,8 @@ void mux_disable(struct debug_mux *mux)
|
||||
unsigned long measure_gcc(const struct measure_clk *clk,
|
||||
const struct debug_mux *mux)
|
||||
{
|
||||
unsigned long raw_count_short;
|
||||
unsigned long raw_count_full;
|
||||
uint64_t raw_count_short;
|
||||
uint64_t raw_count_full;
|
||||
struct gcc_mux *gcc = container_of(mux, struct gcc_mux, mux);
|
||||
unsigned long xo_div4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user