selftests: intel_pstate: ftime() is deprecated
authorTommi Rantala <tommi.t.rantala@nokia.com>
Mon, 2 Nov 2020 07:39:18 +0000 (09:39 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 10 Nov 2020 21:41:32 +0000 (14:41 -0700)
commitfc4a3a1bf9ad799181e4d4ec9c2598c0405bc27d
tree82bfd45cca1c6938f3e15f06c3dce4abfaf9d558
parent85128c5bcdf9bd9b574d7cbafa49170a39fed2e1
selftests: intel_pstate: ftime() is deprecated

Use clock_gettime() instead of deprecated ftime().

  aperf.c: In function ‘main’:
  aperf.c:58:2: warning: ‘ftime’ is deprecated [-Wdeprecated-declarations]
     58 |  ftime(&before);
        |  ^~~~~
  In file included from aperf.c:9:
  /usr/include/sys/timeb.h:39:12: note: declared here
     39 | extern int ftime (struct timeb *__timebuf)
        |            ^~~~~

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/intel_pstate/aperf.c