diff options
author | Helge Deller <deller@parisc-linux.org> | 2006-01-10 20:35:03 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@duet.int.mcmartin.ca> | 2006-01-10 20:35:03 -0500 |
commit | 8039de10aae3cd4cf0ef0ccebd58aff0e8810df2 (patch) | |
tree | af82e045c8fb3a417f78b49ec43413995b5f3c0f /arch/parisc/kernel/perf.c | |
parent | 02706647a49011ae1e7b4eca33e835d1681b094e (diff) |
[PARISC] Add __read_mostly section for parisc
Flag a whole bunch of things as __read_mostly on parisc. Also flag a few
branches as unlikely() and cleanup a bit of code.
Signed-off-by: Helge Deller <deller@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'arch/parisc/kernel/perf.c')
-rw-r--r-- | arch/parisc/kernel/perf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/kernel/perf.c b/arch/parisc/kernel/perf.c index f6fec62b6a2f..79dcbcccecb8 100644 --- a/arch/parisc/kernel/perf.c +++ b/arch/parisc/kernel/perf.c | |||
@@ -66,10 +66,10 @@ struct rdr_tbl_ent { | |||
66 | uint8_t write_control; | 66 | uint8_t write_control; |
67 | }; | 67 | }; |
68 | 68 | ||
69 | static int perf_processor_interface = UNKNOWN_INTF; | 69 | static int perf_processor_interface __read_mostly = UNKNOWN_INTF; |
70 | static int perf_enabled = 0; | 70 | static int perf_enabled __read_mostly = 0; |
71 | static spinlock_t perf_lock; | 71 | static spinlock_t perf_lock; |
72 | struct parisc_device *cpu_device = NULL; | 72 | struct parisc_device *cpu_device __read_mostly = NULL; |
73 | 73 | ||
74 | /* RDRs to write for PCX-W */ | 74 | /* RDRs to write for PCX-W */ |
75 | static int perf_rdrs_W[] = | 75 | static int perf_rdrs_W[] = |