commit | bbc9c86de19d0ed44744e305940cd18c2203f834 | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@mips.com> | Tue Jun 18 11:27:19 2019 -0700 |
committer | Paul Burton <paul.burton@mips.com> | Tue Jun 18 11:37:21 2019 -0700 |
tree | 35c000af7493b3be30b2a45ad90f5385e030c674 | |
parent | 8252582fb911e9d0f52ff718823cf1e00a9dcc81 [diff] |
clocksource/mips-gic-timer: Register as sched_clock The MIPS GIC timer is well suited for use as sched_clock, so register it as such. Whilst the existing gic_read_count() function matches the prototype needed by sched_clock_register() already, we split it into 2 functions in order to remove the need to evaluate the mips_cm_is64 condition within each call since sched_clock should be as fast as possible. Signed-off-by: Paul Burton <paul.burton@mips.com>