diff options
author | Richard Braun <rbraun@sceen.net> | 2014-01-02 23:38:19 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-01-02 23:38:19 +0100 |
commit | 8ad09341a41f54c846296a4265d0914f24e5a69b (patch) | |
tree | 46b1454b40e530c414d8ffa1466ac58ce10f6da3 /kern/task.c | |
parent | 73cb08aea72483f509d774630a63006b9338c1ad (diff) |
Declare variables as read mostly where appropriate
Diffstat (limited to 'kern/task.c')
-rw-r--r-- | kern/task.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/task.c b/kern/task.c index 6909cb32..4cc87ca7 100644 --- a/kern/task.c +++ b/kern/task.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 Richard Braun. + * Copyright (c) 2012-2014 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ #include <kern/init.h> #include <kern/kmem.h> #include <kern/list.h> +#include <kern/param.h> #include <kern/spinlock.h> #include <kern/stddef.h> #include <kern/string.h> @@ -31,7 +32,7 @@ * Kernel task and storage. */ static struct task kernel_task_store; -struct task *kernel_task = &kernel_task_store; +struct task *kernel_task __read_mostly = &kernel_task_store; /* * Cache for allocated tasks. |