[FOSS_TLK]platform: tegra: fix usleep/nanosleep
authorChris Johnson <cwj@nvidia.com>
Thu, 11 Dec 2014 23:20:34 +0000 (15:20 -0800)
committerDennis Huang <denhuang@nvidia.com>
Tue, 16 Jun 2015 20:54:14 +0000 (13:54 -0700)
commit9e6ffc895ded4e1da846178c62b6babd49b49d0f
treef73c5ed416fb3ca552b5b2d3ffcaf1a599694f33
parente7ef55878ddab03c8c6186cfd5b0051a58e95c09
[FOSS_TLK]platform: tegra: fix usleep/nanosleep

The TLK syscall was expecting a struct timespec pointer to
be passed in (like nanosleep), but TAs were passing a usec
value (like usleep) failing the pointer address check.

This renames the syscall (in TLK) and adds support in libc
to make the usleep still called from the TAs work as a
nanosleep syscall as the kernel expected.

Change-Id: Ic4887e3746d71f69d8ba2ec6412b8143595bc868
Reviewed-on: http://git-master/r/715767
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
kernel/syscall.c