Commit b1d63f0c authored by Linus Torvalds's avatar Linus Torvalds

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
parents 7c698440 f12cd061
...@@ -210,6 +210,10 @@ ld_version() ...@@ -210,6 +210,10 @@ ld_version()
gsub(".*version ", ""); gsub(".*version ", "");
gsub("-.*", ""); gsub("-.*", "");
split($1,a, "."); split($1,a, ".");
if( length(a[3]) == "8" )
# a[3] is probably a date of format yyyymmdd used for release snapshots. We
# can assume it to be zero as it does not signify a new version as such.
a[3] = 0;
print a[1]*100000000 + a[2]*1000000 + a[3]*10000; print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
exit exit
}' }'
......
...@@ -137,7 +137,7 @@ struct imc_pmu { ...@@ -137,7 +137,7 @@ struct imc_pmu {
* are inited. * are inited.
*/ */
struct imc_pmu_ref { struct imc_pmu_ref {
struct mutex lock; spinlock_t lock;
unsigned int id; unsigned int id;
int refc; int refc;
}; };
......
...@@ -1012,7 +1012,7 @@ static void __init hash_init_partition_table(phys_addr_t hash_table, ...@@ -1012,7 +1012,7 @@ static void __init hash_init_partition_table(phys_addr_t hash_table,
void hpt_clear_stress(void); void hpt_clear_stress(void);
static struct timer_list stress_hpt_timer; static struct timer_list stress_hpt_timer;
void stress_hpt_timer_fn(struct timer_list *timer) static void stress_hpt_timer_fn(struct timer_list *timer)
{ {
int next_cpu; int next_cpu;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment