On 25/04/18 07:12, Sukadev Bhattiprolu wrote:
Yes. Like with PIDR, was trying to assign TIDR initially to all threads. But since only a subset of threads need/use TIDR, we can assign the value later (when set_thread_tidr() is called). So we should be able to use task_pid_nr() then.
OK. Alastair has also confirmed with me that truncating the pid to a u16 should be safe, so therefore:
Reviewed-by: Andrew Donnellan <[email protected]> -- Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited

