Skip to content

Commit 84c1502

Browse files
Paul McQuaderostedt
authored andcommitted
async: Fixed an include coding style issue
Added <linux/atomic.h>,<linux/ktime.h> and Removed <asm/atomic.h>. Added KERN_DEBUG to printk() functions. Acked-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Paul McQuade <tungstentide@gmail.com> Link: http://lkml.kernel.org/r/4DE596B4.7030904@gmail.com Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent bd38c0e commit 84c1502

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎kernel/async.c‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ asynchronous and synchronous parts of the kernel.
4949
*/
5050

5151
#include <linux/async.h>
52+
#include <linux/atomic.h>
53+
#include <linux/ktime.h>
5254
#include <linux/module.h>
5355
#include <linux/wait.h>
5456
#include <linux/sched.h>
5557
#include <linux/slab.h>
5658
#include <linux/workqueue.h>
57-
#include <asm/atomic.h>
5859

5960
static async_cookie_t next_cookie = 1;
6061

@@ -128,15 +129,16 @@ static void async_run_entry_fn(struct work_struct *work)
128129

129130
/* 2) run (and print duration) */
130131
if (initcall_debug && system_state == SYSTEM_BOOTING) {
131-
printk("calling %lli_%pF @ %i\n", (long long)entry->cookie,
132+
printk(KERN_DEBUG "calling %lli_%pF @ %i\n",
133+
(long long)entry->cookie,
132134
entry->func, task_pid_nr(current));
133135
calltime = ktime_get();
134136
}
135137
entry->func(entry->data, entry->cookie);
136138
if (initcall_debug && system_state == SYSTEM_BOOTING) {
137139
rettime = ktime_get();
138140
delta = ktime_sub(rettime, calltime);
139-
printk("initcall %lli_%pF returned 0 after %lld usecs\n",
141+
printk(KERN_DEBUG "initcall %lli_%pF returned 0 after %lld usecs\n",
140142
(long long)entry->cookie,
141143
entry->func,
142144
(long long)ktime_to_ns(delta) >> 10);
@@ -270,7 +272,7 @@ void async_synchronize_cookie_domain(async_cookie_t cookie,
270272
ktime_t starttime, delta, endtime;
271273

272274
if (initcall_debug && system_state == SYSTEM_BOOTING) {
273-
printk("async_waiting @ %i\n", task_pid_nr(current));
275+
printk(KERN_DEBUG "async_waiting @ %i\n", task_pid_nr(current));
274276
starttime = ktime_get();
275277
}
276278

@@ -280,7 +282,7 @@ void async_synchronize_cookie_domain(async_cookie_t cookie,
280282
endtime = ktime_get();
281283
delta = ktime_sub(endtime, starttime);
282284

283-
printk("async_continuing @ %i after %lli usec\n",
285+
printk(KERN_DEBUG "async_continuing @ %i after %lli usec\n",
284286
task_pid_nr(current),
285287
(long long)ktime_to_ns(delta) >> 10);
286288
}

0 commit comments

Comments
 (0)