Skip to content

Commit b1d63f0

Browse files
committed
Merge tag 'powerpc-6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Michael Ellerman: - Fix a build failure with some versions of ld that have an odd version string - Fix incorrect use of mutex in the IMC PMU driver Thanks to Kajol Jain, Michael Petlan, Ojaswin Mujoo, Peter Zijlstra, and Yang Yingliang. * tag 'powerpc-6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/64s/hash: Make stress_hpt_timer_fn() static powerpc/imc-pmu: Fix use of mutex in IRQs disabled section powerpc/boot: Fix incorrect version calculation issue in ld_version
2 parents 7c69844 + f12cd06 commit b1d63f0

File tree

4 files changed

+72
-72
lines changed

4 files changed

+72
-72
lines changed

arch/powerpc/boot/wrapper

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ ld_version()
210210
gsub(".*version ", "");
211211
gsub("-.*", "");
212212
split($1,a, ".");
213+
if( length(a[3]) == "8" )
214+
# a[3] is probably a date of format yyyymmdd used for release snapshots. We
215+
# can assume it to be zero as it does not signify a new version as such.
216+
a[3] = 0;
213217
print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
214218
exit
215219
}'

arch/powerpc/include/asm/imc-pmu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ struct imc_pmu {
137137
* are inited.
138138
*/
139139
struct imc_pmu_ref {
140-
struct mutex lock;
140+
spinlock_t lock;
141141
unsigned int id;
142142
int refc;
143143
};

arch/powerpc/mm/book3s64/hash_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ static void __init hash_init_partition_table(phys_addr_t hash_table,
10121012

10131013
void hpt_clear_stress(void);
10141014
static struct timer_list stress_hpt_timer;
1015-
void stress_hpt_timer_fn(struct timer_list *timer)
1015+
static void stress_hpt_timer_fn(struct timer_list *timer)
10161016
{
10171017
int next_cpu;
10181018

0 commit comments

Comments
 (0)