1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2012 Fujitsu. All rights reserved.
4 * Written by Miao Xie <miaox@cn.fujitsu.com>
10 #include <asm/div64.h>
12 static inline u64
div_factor(u64 num
, int factor
)
17 return div_u64(num
, 10);
20 static inline u64
div_factor_fine(u64 num
, int factor
)
25 return div_u64(num
, 100);