lkml.org 
[lkml]   [2022]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] clocksource: Resolve some coding specification issues about spaces
Date
Some spaces were not used in accordance with current 
encoding specifications, so I tried to modify them.

Signed-off-by: Liu Tie <liutie4@huawei.com>
---
kernel/time/clocksource.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index cee5da1e5..46b738696 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -47,7 +47,7 @@ void
clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec)
{
u64 tmp;
- u32 sft, sftacc= 32;
+ u32 sft, sftacc = 32;

/*
* Calculate the shift factor which is limiting the conversion
@@ -55,7 +55,7 @@ clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec)
*/
tmp = ((u64)maxsec * from) >> 32;
while (tmp) {
- tmp >>=1;
+ tmp >>= 1;
sftacc--;
}

@@ -863,7 +863,7 @@ static u32 clocksource_max_adjustment(struct clocksource *cs)
* We won't try to correct for more than 11% adjustments (110,000 ppm),
*/
ret = (u64)cs->mult * 11;
- do_div(ret,100);
+ do_div(ret, 100);
return (u32)ret;
}

@@ -1446,7 +1446,7 @@ device_initcall(init_clocksource_sysfs);
* Takes a clocksource= boot argument and uses it
* as the clocksource override name.
*/
-static int __init boot_override_clocksource(char* str)
+static int __init boot_override_clocksource(char *str)
{
mutex_lock(&clocksource_mutex);
if (str)
@@ -1464,7 +1464,7 @@ __setup("clocksource=", boot_override_clocksource);
* DEPRECATED! Takes a clock= boot argument and uses it
* as the clocksource override name
*/
-static int __init boot_override_clock(char* str)
+static int __init boot_override_clock(char *str)
{
if (!strcmp(str, "pmtmr")) {
pr_warn("clock=pmtmr is deprecated - use clocksource=acpi_pm\n");
--
2.27.0
\
 
 \ /
  Last update: 2022-08-02 05:08    [W:0.029 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site