diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-07-23 17:32:04 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-07-31 11:51:19 -0400 |
commit | dd78bc11fb2050b6a3990d0421feca4c68ca4335 (patch) | |
tree | 7147fe5e0b3815443eea608d3dd0950ba53bb47d /arch/tile/kernel | |
parent | 7d937719e3c5c6c9ad00584f6b62230d2ef7f9f1 (diff) |
tile: convert uses of "inv" to "finv"
The "inv" (invalidate) instruction is generally less safe than "finv"
(flush and invalidate), as it will drop dirty data from the cache.
It turns out we have almost no need for "inv" (other than for the
older 32-bit architecture in some limited cases), so convert to
"finv" where possible and delete the extra "inv" infrastructure.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel')
-rw-r--r-- | arch/tile/kernel/head_32.S | 2 | ||||
-rw-r--r-- | arch/tile/kernel/head_64.S | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/kernel/head_32.S b/arch/tile/kernel/head_32.S index ac115307e5e4..80cd407925cd 100644 --- a/arch/tile/kernel/head_32.S +++ b/arch/tile/kernel/head_32.S | |||
@@ -64,7 +64,7 @@ ENTRY(_start) | |||
64 | auli r0, r0, ha16(swapper_pg_dir - PAGE_OFFSET) | 64 | auli r0, r0, ha16(swapper_pg_dir - PAGE_OFFSET) |
65 | } | 65 | } |
66 | { | 66 | { |
67 | inv r6 | 67 | finv r6 |
68 | move r1, zero /* high 32 bits of CPA is zero */ | 68 | move r1, zero /* high 32 bits of CPA is zero */ |
69 | } | 69 | } |
70 | { | 70 | { |
diff --git a/arch/tile/kernel/head_64.S b/arch/tile/kernel/head_64.S index 6093964fa5c7..e23e5f7b91d9 100644 --- a/arch/tile/kernel/head_64.S +++ b/arch/tile/kernel/head_64.S | |||
@@ -77,7 +77,7 @@ ENTRY(_start) | |||
77 | { | 77 | { |
78 | /* After initializing swapper_pgprot, HV_PTE_GLOBAL is set. */ | 78 | /* After initializing swapper_pgprot, HV_PTE_GLOBAL is set. */ |
79 | bfextu r7, r1, HV_PTE_INDEX_GLOBAL, HV_PTE_INDEX_GLOBAL | 79 | bfextu r7, r1, HV_PTE_INDEX_GLOBAL, HV_PTE_INDEX_GLOBAL |
80 | inv r4 | 80 | finv r4 |
81 | } | 81 | } |
82 | bnez r7, .Lno_write | 82 | bnez r7, .Lno_write |
83 | { | 83 | { |