clk: mvebu: use time_is_before_eq_jiffies() instead of open coding it

Use the helper function time_is_{before,after}_jiffies() to improve
code readability.

Signed-off-by: Wang Qing <wangqing@vivo.com>
Link: https://lore.kernel.org/r/1644890154-64915-3-git-send-email-wangqing@vivo.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by Wang Qing and committed by Stephen Boyd b191fe39 e783362e

+2 -1
+2 -1
drivers/clk/mvebu/armada-37xx-periph.c
··· 25 25 #include <linux/platform_device.h> 26 26 #include <linux/regmap.h> 27 27 #include <linux/slab.h> 28 + #include <linux/jiffies.h> 28 29 29 30 #define TBG_SEL 0x0 30 31 #define DIV_SEL0 0x4 ··· 542 541 * We are going to L0 with rate >= 1GHz. Check whether we have been at 543 542 * L1 for long enough time. If not, go to L1 for 20ms. 544 543 */ 545 - if (pm_cpu->l1_expiration && jiffies >= pm_cpu->l1_expiration) 544 + if (pm_cpu->l1_expiration && time_is_before_eq_jiffies(pm_cpu->l1_expiration)) 546 545 goto invalidate_l1_exp; 547 546 548 547 regmap_update_bits(base, ARMADA_37XX_NB_CPU_LOAD,