> 2 diff things. semap are sync mechanism used - to sync among
> CPUs/processes/tasks etc. Just a counting mechanism. It DOES NOT
> lock the other CPU while another CPU is using the same resources. but
> this counting must be atomic....different arch has different instruction
> set to do it.
I thought that because there is an 'init_MUTEX(struct semaphore *)'
macro, there would be no difference between semaphores and mutex_locks.
So, did I understand it right:
semaphores are only local (for one CPU)?
mutex_locks also lock the other CPUs?