source: rtems/cpukit/score/Makefile.am @ e5ca54c9

4.11
Last change on this file since e5ca54c9 was e5ca54c9, checked in by Sebastian Huber <sebastian.huber@…>, on Aug 7, 2013 at 7:19:55 PM

score: PR2136: Fix _Thread_Change_priority()

Add call to _Scheduler_Schedule() in missing path after
_Thread_Set_transient() in _Thread_Change_priority(). See also
sptests/spintrcritical19.

Add thread parameter to _Scheduler_Schedule(). This parameter is
currently unused but may be used in future SMP schedulers.

Do heir selection in _Scheduler_Schedule(). Use
_Scheduler_Update_heir() for this in the particular scheduler
implementation.

Add and use _Scheduler_Generic_block().

  • Property mode set to 100644
File size: 13.3 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4SUBDIRS = cpu
5
6## include
7
8include_rtemsdir = $(includedir)/rtems
9
10include_rtems_HEADERS = include/rtems/debug.h
11include_rtems_HEADERS += include/rtems/system.h
12include_rtems_HEADERS += include/rtems/seterr.h
13include_rtems_HEADERS += include/rtems/bspsmp.h
14
15include_rtems_scoredir = $(includedir)/rtems/score
16
17include_rtems_score_HEADERS = include/rtems/score/address.h
18include_rtems_score_HEADERS += include/rtems/score/apiext.h
19include_rtems_score_HEADERS += include/rtems/score/apimutex.h
20include_rtems_score_HEADERS += include/rtems/score/assert.h
21include_rtems_score_HEADERS += include/rtems/score/chain.h
22include_rtems_score_HEADERS += include/rtems/score/chainimpl.h
23include_rtems_score_HEADERS += include/rtems/score/context.h
24include_rtems_score_HEADERS += include/rtems/score/copyrt.h
25include_rtems_score_HEADERS += include/rtems/score/corebarrier.h
26include_rtems_score_HEADERS += include/rtems/score/corebarrierimpl.h
27include_rtems_score_HEADERS += include/rtems/score/coremsg.h
28include_rtems_score_HEADERS += include/rtems/score/coremsgimpl.h
29include_rtems_score_HEADERS += include/rtems/score/coremutex.h
30include_rtems_score_HEADERS += include/rtems/score/coremuteximpl.h
31include_rtems_score_HEADERS += include/rtems/score/coresem.h
32include_rtems_score_HEADERS += include/rtems/score/coresemimpl.h
33include_rtems_score_HEADERS += include/rtems/score/heap.h
34include_rtems_score_HEADERS += include/rtems/score/heapimpl.h
35include_rtems_score_HEADERS += include/rtems/score/protectedheap.h
36include_rtems_score_HEADERS += include/rtems/score/interr.h
37include_rtems_score_HEADERS += include/rtems/score/isr.h
38include_rtems_score_HEADERS += include/rtems/score/isrlevel.h
39include_rtems_score_HEADERS += include/rtems/score/isrlock.h
40include_rtems_score_HEADERS += include/rtems/score/freechain.h
41include_rtems_score_HEADERS += include/rtems/score/object.h
42include_rtems_score_HEADERS += include/rtems/score/objectimpl.h
43include_rtems_score_HEADERS += include/rtems/score/percpu.h
44include_rtems_score_HEADERS += include/rtems/score/priority.h
45include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
46include_rtems_score_HEADERS += include/rtems/score/prioritybitmapimpl.h
47include_rtems_score_HEADERS += include/rtems/score/rbtree.h
48include_rtems_score_HEADERS += include/rtems/score/rbtreeimpl.h
49include_rtems_score_HEADERS += include/rtems/score/scheduler.h
50include_rtems_score_HEADERS += include/rtems/score/schedulerimpl.h
51include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
52include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
53include_rtems_score_HEADERS += include/rtems/score/scheduleredfimpl.h
54include_rtems_score_HEADERS += include/rtems/score/schedulerpriority.h
55include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityimpl.h
56include_rtems_score_HEADERS += include/rtems/score/schedulersimple.h
57include_rtems_score_HEADERS += include/rtems/score/schedulersimpleimpl.h
58include_rtems_score_HEADERS += include/rtems/score/smp.h
59include_rtems_score_HEADERS += include/rtems/score/smplock.h
60include_rtems_score_HEADERS += include/rtems/score/stack.h
61include_rtems_score_HEADERS += include/rtems/score/stackimpl.h
62include_rtems_score_HEADERS += include/rtems/score/states.h
63include_rtems_score_HEADERS += include/rtems/score/statesimpl.h
64include_rtems_score_HEADERS += include/rtems/score/sysstate.h
65include_rtems_score_HEADERS += include/rtems/score/thread.h
66include_rtems_score_HEADERS += include/rtems/score/threadimpl.h
67include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
68include_rtems_score_HEADERS += include/rtems/score/threadq.h
69include_rtems_score_HEADERS += include/rtems/score/threadqimpl.h
70include_rtems_score_HEADERS += include/rtems/score/threadsync.h
71include_rtems_score_HEADERS += include/rtems/score/timespec.h
72include_rtems_score_HEADERS += include/rtems/score/timestamp.h
73include_rtems_score_HEADERS += include/rtems/score/timestamp64.h
74include_rtems_score_HEADERS += include/rtems/score/tod.h
75include_rtems_score_HEADERS += include/rtems/score/todimpl.h
76include_rtems_score_HEADERS += include/rtems/score/userext.h
77include_rtems_score_HEADERS += include/rtems/score/userextimpl.h
78include_rtems_score_HEADERS += include/rtems/score/watchdog.h
79include_rtems_score_HEADERS += include/rtems/score/watchdogimpl.h
80include_rtems_score_HEADERS += include/rtems/score/wkspace.h
81include_rtems_score_HEADERS += include/rtems/score/cpuopts.h
82include_rtems_score_HEADERS += include/rtems/score/basedefs.h
83if ATOMIC
84include_rtems_score_HEADERS += include/rtems/score/atomic.h
85include_rtems_score_HEADERS += include/rtems/score/cpustdatomic.h
86endif
87
88if HAS_PTHREADS
89include_rtems_score_HEADERS += include/rtems/score/corespinlock.h
90include_rtems_score_HEADERS += include/rtems/score/corespinlockimpl.h
91include_rtems_score_HEADERS += include/rtems/score/corerwlock.h
92include_rtems_score_HEADERS += include/rtems/score/corerwlockimpl.h
93endif
94
95if HAS_MP
96# We only build multiprocessing related files if HAS_MP was defined
97include_rtems_score_HEADERS += include/rtems/score/mpci.h
98include_rtems_score_HEADERS += include/rtems/score/mpciimpl.h
99include_rtems_score_HEADERS += include/rtems/score/mppkt.h
100include_rtems_score_HEADERS += include/rtems/score/objectmp.h
101include_rtems_score_HEADERS += include/rtems/score/threadmp.h
102endif
103
104if HAS_SMP
105include_rtems_score_HEADERS += include/rtems/score/schedulersimplesmp.h
106endif
107
108## src
109
110noinst_LIBRARIES = libscore.a
111libscore_a_SOURCES =
112libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
113
114# We only build multiprocessing related files if HAS_MP was defined
115if HAS_MP
116libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
117endif
118
119if HAS_SMP
120libscore_a_SOURCES += src/schedulersimplesmp.c
121libscore_a_SOURCES += src/smp.c
122endif
123
124## CORE_APIMUTEX_C_FILES
125libscore_a_SOURCES += src/apimutex.c \
126    src/apimutexlock.c src/apimutexunlock.c
127
128## CORE_BARRIER_C_FILES
129libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
130    src/corebarrierwait.c
131
132## CORE_MESSAGE_QUEUE_C_FILES
133libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
134    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
135    src/coremsginsert.c src/coremsgflushsupp.c src/coremsgseize.c \
136    src/coremsgsubmit.c
137
138## CORE_MUTEX_C_FILES
139libscore_a_SOURCES += src/coremutex.c src/coremutexflush.c \
140    src/coremutexseize.c src/coremutexsurrender.c \
141    src/coremutexseizeintr.c
142
143## CORE_PERCPU_C_FILES
144libscore_a_SOURCES += src/percpu.c
145libscore_a_SOURCES += src/percpuasm.c
146
147## CORE_RWLOCK_C_FILES
148if HAS_PTHREADS
149libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
150    src/corerwlockobtainwrite.c src/corerwlockrelease.c src/corerwlocktimeout.c
151endif
152
153## CORE_SEMAPHORE_C_FILES
154libscore_a_SOURCES += src/coresem.c src/coresemflush.c src/coresemseize.c \
155    src/coresemsurrender.c
156
157## CORE_SPINLOCK_C_FILES
158if HAS_PTHREADS
159libscore_a_SOURCES += src/corespinlock.c src/corespinlockrelease.c \
160    src/corespinlockwait.c
161endif
162
163## HEAP_C_FILES
164libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
165    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
166    src/heapgetfreeinfo.c src/heapresizeblock.c src/heapiterate.c \
167    src/heapgreedy.c src/heapnoextend.c
168
169## OBJECT_C_FILES
170libscore_a_SOURCES += src/objectallocate.c src/objectclose.c \
171    src/objectextendinformation.c src/objectfree.c src/objectget.c \
172    src/objectgetisr.c src/objectgetnext.c src/objectinitializeinformation.c \
173    src/objectnametoid.c src/objectnametoidstring.c \
174    src/objectshrinkinformation.c src/objectgetnoprotection.c \
175    src/objectidtoname.c src/objectgetnameasstring.c src/objectsetname.c \
176    src/objectgetinfo.c src/objectgetinfoid.c src/objectapimaximumclass.c \
177    src/objectnamespaceremove.c \
178    src/objectactivecount.c
179
180## SCHEDULER_C_FILES
181libscore_a_SOURCES += src/scheduler.c
182libscore_a_SOURCES += src/schedulerdefaultallocatefree.c
183libscore_a_SOURCES += src/schedulerdefaultreleasejob.c
184libscore_a_SOURCES += src/schedulerdefaultstartidle.c
185libscore_a_SOURCES += src/schedulerdefaulttick.c
186libscore_a_SOURCES += src/schedulerdefaultupdate.c
187
188## SCHEDULERPRIORITY_C_FILES
189libscore_a_SOURCES += src/schedulerpriority.c \
190    src/schedulerpriorityallocate.c \
191    src/schedulerpriorityblock.c \
192    src/schedulerpriorityenqueue.c \
193    src/schedulerpriorityenqueuefirst.c \
194    src/schedulerpriorityextract.c \
195    src/schedulerpriorityfree.c \
196    src/schedulerpriorityprioritycompare.c \
197    src/schedulerpriorityschedule.c \
198    src/schedulerpriorityunblock.c \
199    src/schedulerpriorityupdate.c \
200    src/schedulerpriorityyield.c
201
202## SCHEDULERSIMPLE_C_FILES
203libscore_a_SOURCES += src/schedulersimple.c \
204    src/schedulersimpleblock.c \
205    src/schedulersimpleenqueue.c \
206    src/schedulersimpleenqueuefirst.c \
207    src/schedulersimpleextract.c \
208    src/schedulersimplereadyqueueenqueue.c \
209    src/schedulersimplereadyqueueenqueuefirst.c \
210    src/schedulersimpleschedule.c \
211    src/schedulersimpleunblock.c \
212    src/schedulersimpleyield.c
213
214## SCHEDULEREDF_C_FILES
215libscore_a_SOURCES += src/scheduleredf.c \
216    src/scheduleredfallocate.c \
217    src/scheduleredfblock.c \
218    src/scheduleredfenqueue.c \
219    src/scheduleredfenqueuefirst.c \
220    src/scheduleredfextract.c \
221    src/scheduleredffree.c \
222    src/scheduleredfprioritycompare.c \
223    src/scheduleredfreleasejob.c \
224    src/scheduleredfschedule.c \
225    src/scheduleredfunblock.c \
226    src/scheduleredfupdate.c \
227    src/scheduleredfyield.c
228
229## SCHEDULERCBS_C_FILES
230libscore_a_SOURCES += src/schedulercbs.c \
231    src/schedulercbsallocate.c \
232    src/schedulercbsattachthread.c \
233    src/schedulercbscleanup.c \
234    src/schedulercbscreateserver.c \
235    src/schedulercbsdestroyserver.c \
236    src/schedulercbsdetachthread.c \
237    src/schedulercbsgetapprovedbudget.c \
238    src/schedulercbsgetexecutiontime.c \
239    src/schedulercbsgetparameters.c \
240    src/schedulercbsgetremainingbudget.c \
241    src/schedulercbsgetserverid.c \
242    src/schedulercbssetparameters.c \
243    src/schedulercbsreleasejob.c \
244    src/schedulercbsunblock.c
245
246## PROTECTED_HEAP_C_FILES
247libscore_a_SOURCES += src/pheapallocate.c \
248    src/pheapextend.c src/pheapfree.c src/pheapgetsize.c \
249    src/pheapgetblocksize.c src/pheapgetfreeinfo.c src/pheapgetinfo.c \
250    src/pheapinit.c src/pheapresizeblock.c src/pheapwalk.c src/pheapiterate.c
251
252## FREECHAIN_C_FILES
253libscore_a_SOURCES += src/freechain.c
254
255## RBTREE_C_FILES
256libscore_a_SOURCES += src/rbtree.c \
257    src/rbtreeextract.c src/rbtreefind.c src/rbtreefindheader.c \
258    src/rbtreeget.c src/rbtreeinsert.c src/rbtreeiterate.c src/rbtreenext.c
259
260## THREAD_C_FILES
261libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
262    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
263    src/threaddelayended.c src/threaddispatch.c \
264    src/threadenabledispatch.c src/threaddisabledispatch.c \
265    src/threadget.c src/threadhandler.c src/threadinitialize.c \
266    src/threadloadenv.c src/threadready.c src/threadreset.c \
267    src/threadrestart.c src/threadsetpriority.c \
268    src/threadsetstate.c src/threadsettransient.c \
269    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
270    src/threadstartmultitasking.c src/iterateoverthreads.c \
271    src/threadblockingoperationcancel.c
272   
273if HAS_SMP
274libscore_a_SOURCES += src/threaddispatchdisablelevel.c
275endif
276
277## THREADQ_C_FILES
278libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \
279    src/threadqdequeuefifo.c src/threadqdequeuepriority.c \
280    src/threadqenqueue.c src/threadqenqueuefifo.c \
281    src/threadqenqueuepriority.c src/threadqextract.c \
282    src/threadqextractfifo.c src/threadqextractpriority.c \
283    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
284    src/threadqfirstpriority.c src/threadqflush.c src/threadqrequeue.c \
285    src/threadqprocesstimeout.c src/threadqtimeout.c
286
287## TIMESPEC_C_FILES
288libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
289    src/timespecisvalid.c src/timespeclessthan.c \
290    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
291    src/timespecdividebyinteger.c
292
293## TIMESTAMP_INT64_C_FILES
294libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
295    src/ts64divide.c src/ts64equalto.c \
296    src/ts64getnanoseconds.c src/ts64getseconds.c \
297    src/ts64lessthan.c \
298    src/ts64set.c src/ts64settozero.c src/ts64subtract.c \
299    src/ts64toticks.c src/ts64totimespec.c src/ts64totimeval.c
300
301## TOD_C_FILES
302libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
303    src/coretodgetuptimetimespec.c src/coretodtickle.c \
304    src/coretodsecondssinceepoch.c \
305    src/coretodtickspersec.c
306
307## WATCHDOG_C_FILES
308libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
309    src/watchdogadjusttochain.c src/watchdoginsert.c src/watchdogremove.c \
310    src/watchdogtickle.c src/watchdogreport.c src/watchdogreportchain.c
311
312## USEREXT_C_FILES
313libscore_a_SOURCES += src/userextaddset.c \
314    src/userext.c src/userextremoveset.c src/userextiterate.c
315
316## STD_C_FILES
317libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \
318    src/chainextract.c src/chainget.c src/chaininsert.c \
319    src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
320    src/chainnodecount.c \
321    src/assertthreaddispatchingrepressed.c \
322    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
323
324EXTRA_DIST = src/Unlimited.txt
325
326DISTCLEANFILES = include/rtems/score/cpuopts.h
327
328include $(srcdir)/preinstall.am
329include $(top_srcdir)/automake/subdirs.am
330include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.