bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 25/66] i386/i386/mp_desc.c: remove dead assignment


From: Marin Ramesa
Subject: [PATCH 25/66] i386/i386/mp_desc.c: remove dead assignment
Date: Thu, 5 Dec 2013 22:03:19 +0100

* i386/i386/mp_desc.c (mp_desc_table): Remove variable.
(mp_desc_table): Remove dead assignment.
* i386/i386/mp_desc.h (mp_desc_table): Remove declaration.

---
 i386/i386/mp_desc.c | 6 ------
 i386/i386/mp_desc.h | 5 -----
 2 files changed, 11 deletions(-)

diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 5ede8f1..4a13ac9 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -74,11 +74,6 @@ char         eintstack[];    /* top */
  */
 
 /*
- * Allocated descriptor tables.
- */
-struct mp_desc_table   *mp_desc_table[NCPUS] = { 0 };
-
-/*
  * Pointer to TSS for access in load_context.
  */
 struct task_tss                *mp_ktss[NCPUS] = { 0 };
@@ -121,7 +116,6 @@ mp_desc_init(mycpu)
                 */
                mpt = (struct mp_desc_table *) interrupt_stack[mycpu];
 
-               mp_desc_table[mycpu] = mpt;
                mp_ktss[mycpu] = &mpt->ktss;
                mp_gdt[mycpu] = mpt->gdt;
 
diff --git a/i386/i386/mp_desc.h b/i386/i386/mp_desc.h
index 03d7194..cb1e9a7 100644
--- a/i386/i386/mp_desc.h
+++ b/i386/i386/mp_desc.h
@@ -56,11 +56,6 @@ struct mp_desc_table {
 };
 
 /*
- * They are pointed to by a per-processor array.
- */
-extern struct mp_desc_table    *mp_desc_table[NCPUS];
-
-/*
  * The kernel TSS gets its own pointer.
  */
 extern struct task_tss         *mp_ktss[NCPUS];
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]