summaryrefslogtreecommitdiff
path: root/kern/ast.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-11 19:42:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-13 01:31:35 +0100
commit2eb6a0e3ac5f4cf32ecdb5a7b2ae416a1cf19382 (patch)
treee28f4753bff6fa549c83330929385bdcb6a4de8f /kern/ast.c
parent97bd0931cd050d48a8b5a01570abe3c7d7b30c9e (diff)
kern: remove register qualifiers
* kern/ast.c: Remove register qualifiers.
Diffstat (limited to 'kern/ast.c')
-rw-r--r--kern/ast.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kern/ast.c b/kern/ast.c
index 97da3abc..e8e8c1bd 100644
--- a/kern/ast.c
+++ b/kern/ast.c
@@ -59,7 +59,7 @@ void
ast_init()
{
#ifndef MACHINE_AST
- register int i;
+ int i;
for (i=0; i<NCPUS; i++)
need_ast[i] = 0;
@@ -69,8 +69,8 @@ ast_init()
void
ast_taken(void)
{
- register thread_t self = current_thread();
- register ast_t reasons;
+ thread_t self = current_thread();
+ ast_t reasons;
/*
* Interrupts are still disabled.
@@ -116,10 +116,10 @@ ast_taken(void)
void
ast_check()
{
- register int mycpu = cpu_number();
- register processor_t myprocessor;
- register thread_t thread = current_thread();
- register run_queue_t rq;
+ int mycpu = cpu_number();
+ processor_t myprocessor;
+ thread_t thread = current_thread();
+ run_queue_t rq;
spl_t s = splsched();
/*
@@ -190,7 +190,7 @@ ast_check()
#endif /* MACH_FIXPRI */
rq = &(myprocessor->processor_set->runq);
if (!(myprocessor->first_quantum) && (rq->count > 0)) {
- register queue_t q;
+ queue_t q;
/*
* This is not the first quantum, and there may
* be something in the processor_set runq.
@@ -198,7 +198,7 @@ ast_check()
*/
q = rq->runq + *(volatile int *)&rq->low;
if (queue_empty(q)) {
- register int i;
+ int i;
/*
* Need to recheck and possibly update hint.