2

I want to know which part of the code is the scheduler of project OPTEEhttps://github.com/OP-TEE.

More specifically, the code decides that on which CPU secure world and normal word processes are running for multicore architecture.

Any advice is genuinely appreciated.

Gilles 'SO- stop being evil'
  • 104,111
  • 38
  • 209
  • 254
S.Wan
  • 396
  • 3
  • 18
  • Are you sure it even has a scheduler? The [design](https://github.com/OP-TEE/optee_os/blob/master/documentation/optee_design.md) and [interrupt handling](https://github.com/OP-TEE/optee_os/blob/master/documentation/interrupt_handling.md) docs rather imply that any event is simply dispatched to the relevant trusted application on whichever core it occurs. – Notlikethat Jul 20 '16 at 20:50
  • ...[apparently not](https://github.com/OP-TEE/optee_os/issues/332). – Notlikethat Jul 20 '16 at 21:56
  • Thank you for the explanation and link @Notlikethat – S.Wan Jul 21 '16 at 21:16

1 Answers1

6

I'm one of the Linaro developers working directly with OP-TEE and OP-TEE as such has no scheduler, instead it's being entirely scheduled by Linux kernel. It's not tied to a single core either, after being in Linux kernel and you're about to re-enter secure world it could be any of the cores where you continue running your ongoing job. So in short, there is no scheduler in OP-TEE.

Joakim Bech
  • 166
  • 1
  • 4