summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/percpu.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-13 15:39:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-29 11:06:06 +0200
commita29704eb04d03eaf526627a2d1fceb075b811cf7 (patch)
treecaece18ad980e5125e49d112143285b3820d29c1 /cpukit/score/src/percpu.c
parentsmp: Include missing header (diff)
downloadrtems-a29704eb04d03eaf526627a2d1fceb075b811cf7.tar.bz2
smp: Rely on BSS initialization
The _Per_CPU_Information is part of the BSS segment and must be zero initialized. Some processors may already poll some per-CPU fields and wait for a state change at this point.
Diffstat (limited to 'cpukit/score/src/percpu.c')
-rw-r--r--cpukit/score/src/percpu.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c
index 7027093577..0fcabbe0d9 100644
--- a/cpukit/score/src/percpu.c
+++ b/cpukit/score/src/percpu.c
@@ -35,11 +35,6 @@
size_t size;
uintptr_t ptr;
- /*
- * Initialize per CPU structures.
- */
- size = (_SMP_Processor_count) * sizeof(Per_CPU_Control);
- memset( _Per_CPU_Information, '\0', size );
/*
* Initialize per cpu pointer table