diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-05 14:39:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-05 14:39:25 -0500 |
commit | c11eef21aa119a41fa210b9693f2346997885bcf (patch) | |
tree | b2d874f4b3f8a65029bc184a2db6b999b8e4d1c1 /arch | |
parent | 221d46841b931d0e6b11e6251e482f2afe3974dd (diff) | |
parent | d2cb0e6ecbe0ef93ab36631cd17ec6cf92b69c5a (diff) |
Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
[S390] tod clock: announce clocksource as perfect
[S390] Rename "idle_time" attribute to "idle_time_us".
[S390] Fix priority mistakes in drivers/s390/cio/cmf.c
[S390] Fix memory detection.
[S390] Fix compile on !CONFIG_SMP.
[S390] device_schedule_callback() for dcssblk.
[S390] Fix smsgiucv init on no iucv machines
[S390] cio: use INIT_WORK to initialize struct work.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/early.c | 4 | ||||
-rw-r--r-- | arch/s390/kernel/process.c | 8 | ||||
-rw-r--r-- | arch/s390/kernel/smp.c | 6 | ||||
-rw-r--r-- | arch/s390/kernel/time.c | 2 |
4 files changed, 13 insertions, 7 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index e6289ee74ecd..8bf4ae1150be 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c | |||
@@ -200,11 +200,13 @@ static noinline __init void find_memory_chunks(unsigned long memsize) | |||
200 | cc = __tprot(addr); | 200 | cc = __tprot(addr); |
201 | while (cc == old_cc) { | 201 | while (cc == old_cc) { |
202 | addr += CHUNK_INCR; | 202 | addr += CHUNK_INCR; |
203 | cc = __tprot(addr); | 203 | if (addr >= memsize) |
204 | break; | ||
204 | #ifndef CONFIG_64BIT | 205 | #ifndef CONFIG_64BIT |
205 | if (addr == ADDR2G) | 206 | if (addr == ADDR2G) |
206 | break; | 207 | break; |
207 | #endif | 208 | #endif |
209 | cc = __tprot(addr); | ||
208 | } | 210 | } |
209 | 211 | ||
210 | if (old_addr != addr && | 212 | if (old_addr != addr && |
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c index 96492cf2d491..29f7884b4ffa 100644 --- a/arch/s390/kernel/process.c +++ b/arch/s390/kernel/process.c | |||
@@ -92,6 +92,7 @@ EXPORT_SYMBOL(unregister_idle_notifier); | |||
92 | 92 | ||
93 | void do_monitor_call(struct pt_regs *regs, long interruption_code) | 93 | void do_monitor_call(struct pt_regs *regs, long interruption_code) |
94 | { | 94 | { |
95 | #ifdef CONFIG_SMP | ||
95 | struct s390_idle_data *idle; | 96 | struct s390_idle_data *idle; |
96 | 97 | ||
97 | idle = &__get_cpu_var(s390_idle); | 98 | idle = &__get_cpu_var(s390_idle); |
@@ -99,7 +100,7 @@ void do_monitor_call(struct pt_regs *regs, long interruption_code) | |||
99 | idle->idle_time += get_clock() - idle->idle_enter; | 100 | idle->idle_time += get_clock() - idle->idle_enter; |
100 | idle->in_idle = 0; | 101 | idle->in_idle = 0; |
101 | spin_unlock(&idle->lock); | 102 | spin_unlock(&idle->lock); |
102 | 103 | #endif | |
103 | /* disable monitor call class 0 */ | 104 | /* disable monitor call class 0 */ |
104 | __ctl_clear_bit(8, 15); | 105 | __ctl_clear_bit(8, 15); |
105 | 106 | ||
@@ -114,7 +115,9 @@ extern void s390_handle_mcck(void); | |||
114 | static void default_idle(void) | 115 | static void default_idle(void) |
115 | { | 116 | { |
116 | int cpu, rc; | 117 | int cpu, rc; |
118 | #ifdef CONFIG_SMP | ||
117 | struct s390_idle_data *idle; | 119 | struct s390_idle_data *idle; |
120 | #endif | ||
118 | 121 | ||
119 | /* CPU is going idle. */ | 122 | /* CPU is going idle. */ |
120 | cpu = smp_processor_id(); | 123 | cpu = smp_processor_id(); |
@@ -151,13 +154,14 @@ static void default_idle(void) | |||
151 | s390_handle_mcck(); | 154 | s390_handle_mcck(); |
152 | return; | 155 | return; |
153 | } | 156 | } |
154 | 157 | #ifdef CONFIG_SMP | |
155 | idle = &__get_cpu_var(s390_idle); | 158 | idle = &__get_cpu_var(s390_idle); |
156 | spin_lock(&idle->lock); | 159 | spin_lock(&idle->lock); |
157 | idle->idle_count++; | 160 | idle->idle_count++; |
158 | idle->in_idle = 1; | 161 | idle->in_idle = 1; |
159 | idle->idle_enter = get_clock(); | 162 | idle->idle_enter = get_clock(); |
160 | spin_unlock(&idle->lock); | 163 | spin_unlock(&idle->lock); |
164 | #endif | ||
161 | trace_hardirqs_on(); | 165 | trace_hardirqs_on(); |
162 | /* Wait for external, I/O or machine check interrupt. */ | 166 | /* Wait for external, I/O or machine check interrupt. */ |
163 | __load_psw_mask(psw_kernel_bits | PSW_MASK_WAIT | | 167 | __load_psw_mask(psw_kernel_bits | PSW_MASK_WAIT | |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 1d97fe1c0e53..b05ae8584258 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -788,14 +788,14 @@ static ssize_t show_idle_time(struct sys_device *dev, char *buf) | |||
788 | } | 788 | } |
789 | new_time = idle->idle_time; | 789 | new_time = idle->idle_time; |
790 | spin_unlock_irq(&idle->lock); | 790 | spin_unlock_irq(&idle->lock); |
791 | return sprintf(buf, "%llu us\n", new_time >> 12); | 791 | return sprintf(buf, "%llu\n", new_time >> 12); |
792 | } | 792 | } |
793 | static SYSDEV_ATTR(idle_time, 0444, show_idle_time, NULL); | 793 | static SYSDEV_ATTR(idle_time_us, 0444, show_idle_time, NULL); |
794 | 794 | ||
795 | static struct attribute *cpu_attrs[] = { | 795 | static struct attribute *cpu_attrs[] = { |
796 | &attr_capability.attr, | 796 | &attr_capability.attr, |
797 | &attr_idle_count.attr, | 797 | &attr_idle_count.attr, |
798 | &attr_idle_time.attr, | 798 | &attr_idle_time_us.attr, |
799 | NULL, | 799 | NULL, |
800 | }; | 800 | }; |
801 | 801 | ||
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 48dae49bc1ec..a963fe81359e 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
@@ -307,7 +307,7 @@ static cycle_t read_tod_clock(void) | |||
307 | 307 | ||
308 | static struct clocksource clocksource_tod = { | 308 | static struct clocksource clocksource_tod = { |
309 | .name = "tod", | 309 | .name = "tod", |
310 | .rating = 100, | 310 | .rating = 400, |
311 | .read = read_tod_clock, | 311 | .read = read_tod_clock, |
312 | .mask = -1ULL, | 312 | .mask = -1ULL, |
313 | .mult = 1000, | 313 | .mult = 1000, |