Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
9cf7f7fa
Commit
9cf7f7fa
authored
Mar 12, 2008
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/jk/spufs
into merge
parents
86f4e5d4
c368392a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/context.c
+2
-1
arch/powerpc/platforms/cell/spufs/run.c
arch/powerpc/platforms/cell/spufs/run.c
+2
-1
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/cell/spufs/sched.c
+2
-2
arch/powerpc/platforms/cell/spufs/spufs.h
arch/powerpc/platforms/cell/spufs/spufs.h
+1
-0
No files found.
arch/powerpc/platforms/cell/spufs/context.c
View file @
9cf7f7fa
...
...
@@ -170,7 +170,8 @@ void spu_release_saved(struct spu_context *ctx)
{
BUG_ON
(
ctx
->
state
!=
SPU_STATE_SAVED
);
if
(
test_and_clear_bit
(
SPU_SCHED_WAS_ACTIVE
,
&
ctx
->
sched_flags
))
if
(
test_and_clear_bit
(
SPU_SCHED_WAS_ACTIVE
,
&
ctx
->
sched_flags
)
&&
test_bit
(
SPU_SCHED_SPU_RUN
,
&
ctx
->
sched_flags
))
spu_activate
(
ctx
,
0
);
spu_release
(
ctx
);
...
...
arch/powerpc/platforms/cell/spufs/run.c
View file @
9cf7f7fa
...
...
@@ -220,6 +220,7 @@ static int spu_run_init(struct spu_context *ctx, u32 *npc)
}
}
set_bit
(
SPU_SCHED_SPU_RUN
,
&
ctx
->
sched_flags
);
return
0
;
}
...
...
@@ -234,7 +235,7 @@ static int spu_run_fini(struct spu_context *ctx, u32 *npc,
*
npc
=
ctx
->
ops
->
npc_read
(
ctx
);
spuctx_switch_state
(
ctx
,
SPU_UTIL_IDLE_LOADED
);
c
tx
->
policy
=
SCHED_IDLE
;
c
lear_bit
(
SPU_SCHED_SPU_RUN
,
&
ctx
->
sched_flags
)
;
spu_release
(
ctx
);
if
(
signal_pending
(
current
))
...
...
arch/powerpc/platforms/cell/spufs/sched.c
View file @
9cf7f7fa
...
...
@@ -867,7 +867,7 @@ static noinline void spusched_tick(struct spu_context *ctx)
if
(
ctx
->
policy
==
SCHED_FIFO
)
goto
out
;
if
(
--
ctx
->
time_slice
&&
ctx
->
policy
!=
SCHED_IDLE
)
if
(
--
ctx
->
time_slice
&&
test_bit
(
SPU_SCHED_SPU_RUN
,
&
ctx
->
sched_flags
)
)
goto
out
;
spu
=
ctx
->
spu
;
...
...
@@ -877,7 +877,7 @@ static noinline void spusched_tick(struct spu_context *ctx)
new
=
grab_runnable_context
(
ctx
->
prio
+
1
,
spu
->
node
);
if
(
new
)
{
spu_unschedule
(
spu
,
ctx
);
if
(
ctx
->
policy
!=
SCHED_IDLE
)
if
(
test_bit
(
SPU_SCHED_SPU_RUN
,
&
ctx
->
sched_flags
)
)
spu_add_to_rq
(
ctx
);
}
else
{
spu_context_nospu_trace
(
spusched_tick__newslice
,
ctx
);
...
...
arch/powerpc/platforms/cell/spufs/spufs.h
View file @
9cf7f7fa
...
...
@@ -44,6 +44,7 @@ struct spu_gang;
enum
{
SPU_SCHED_NOTIFY_ACTIVE
,
SPU_SCHED_WAS_ACTIVE
,
/* was active upon spu_acquire_saved() */
SPU_SCHED_SPU_RUN
,
/* context is within spu_run */
};
struct
spu_context
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment