mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
[POWERPC] spu sched: update some comments
Give spu_yield a kerneldoc comment and remove the old comment documenting spu_activate, spu_deactive and spu_yield as all of them now have descriptive kerneldoc comments of their own. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
This commit is contained in:
parent
678b2ff1e6
commit
ae7b4c5284
1 changed files with 8 additions and 8 deletions
|
@ -281,14 +281,6 @@ static struct spu *spu_get_idle(struct spu_context *ctx)
|
||||||
return spu;
|
return spu;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The three externally callable interfaces
|
|
||||||
* for the scheduler begin here.
|
|
||||||
*
|
|
||||||
* spu_activate - bind a context to SPU, waiting as needed.
|
|
||||||
* spu_deactivate - unbind a context from its SPU.
|
|
||||||
* spu_yield - yield an SPU if others are waiting.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* spu_activate - find a free spu for a context and execute it
|
* spu_activate - find a free spu for a context and execute it
|
||||||
* @ctx: spu context to schedule
|
* @ctx: spu context to schedule
|
||||||
|
@ -339,6 +331,14 @@ void spu_deactivate(struct spu_context *ctx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* spu_yield - yield a physical spu if others are waiting
|
||||||
|
* @ctx: spu context to yield
|
||||||
|
*
|
||||||
|
* Check if there is a higher priority context waiting and if yes
|
||||||
|
* unbind @ctx from the physical spu and schedule the highest
|
||||||
|
* priority context to run on the freed physical spu instead.
|
||||||
|
*/
|
||||||
void spu_yield(struct spu_context *ctx)
|
void spu_yield(struct spu_context *ctx)
|
||||||
{
|
{
|
||||||
struct spu *spu;
|
struct spu *spu;
|
||||||
|
|
Loading…
Reference in a new issue