]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: optimize loads in clock_sched()
authorPavel Tatashin <pasha.tatashin@oracle.com>
Mon, 12 Jun 2017 20:41:44 +0000 (16:41 -0400)
committerAllen Pais <allen.pais@oracle.com>
Thu, 29 Jun 2017 08:09:43 +0000 (13:39 +0530)
commitf424cfa3dd2b55e3036fbdf516a22047136c0ef6
tree8b3758631c2f8d59c5b873064bac7ca4b098f7fc
parent1d435571dabdfe6a71fbf326be891b286a5e854a
sparc64: optimize loads in clock_sched()

In clock sched we now have three loads:
- Function pointer
- quotient for multiplication
- offset

However, it is possible to improve performance substantially, by
guaranteeing that all three loads are from the same cacheline.

By moving these three values first in sparc64_tick_ops, and by having
tick_operations 64-byte aligned we guarantee this.

Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: Steven Sistare <steven.sistare@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 24401250
Orabug: 25637776

(cherry picked from commit 178bf2b9a20e866677bbca5cb521b09a8498c1d7)
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/timer_64.h
arch/sparc/kernel/time_64.c