Skip to content

Commit bcf44bf

Browse files
committed
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar: "A cpufreq lockup fix and a compiler warning fix" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched: Fix compiler warnings x86, tsc: Fix cpufreq lockup
2 parents d14aef3 + b6220ad commit bcf44bf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

arch/arm/kernel/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void store_cpu_topology(unsigned int cpuid)
275275
cpu_topology[cpuid].socket_id, mpidr);
276276
}
277277

278-
static inline const int cpu_corepower_flags(void)
278+
static inline int cpu_corepower_flags(void)
279279
{
280280
return SD_SHARE_PKG_RESOURCES | SD_SHARE_POWERDOMAIN;
281281
}

arch/powerpc/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ int setup_profiling_timer(unsigned int multiplier)
747747

748748
#ifdef CONFIG_SCHED_SMT
749749
/* cpumask of CPUs with asymetric SMT dependancy */
750-
static const int powerpc_smt_flags(void)
750+
static int powerpc_smt_flags(void)
751751
{
752752
int flags = SD_SHARE_CPUCAPACITY | SD_SHARE_PKG_RESOURCES;
753753

arch/x86/kernel/tsc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,9 +920,9 @@ static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
920920
tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new);
921921
if (!(freq->flags & CPUFREQ_CONST_LOOPS))
922922
mark_tsc_unstable("cpufreq changes");
923-
}
924923

925-
set_cyc2ns_scale(tsc_khz, freq->cpu);
924+
set_cyc2ns_scale(tsc_khz, freq->cpu);
925+
}
926926

927927
return 0;
928928
}

include/linux/sched.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,21 +872,21 @@ enum cpu_idle_type {
872872
#define SD_NUMA 0x4000 /* cross-node balancing */
873873

874874
#ifdef CONFIG_SCHED_SMT
875-
static inline const int cpu_smt_flags(void)
875+
static inline int cpu_smt_flags(void)
876876
{
877877
return SD_SHARE_CPUCAPACITY | SD_SHARE_PKG_RESOURCES;
878878
}
879879
#endif
880880

881881
#ifdef CONFIG_SCHED_MC
882-
static inline const int cpu_core_flags(void)
882+
static inline int cpu_core_flags(void)
883883
{
884884
return SD_SHARE_PKG_RESOURCES;
885885
}
886886
#endif
887887

888888
#ifdef CONFIG_NUMA
889-
static inline const int cpu_numa_flags(void)
889+
static inline int cpu_numa_flags(void)
890890
{
891891
return SD_NUMA;
892892
}
@@ -999,7 +999,7 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms);
999999
bool cpus_share_cache(int this_cpu, int that_cpu);
10001000

10011001
typedef const struct cpumask *(*sched_domain_mask_f)(int cpu);
1002-
typedef const int (*sched_domain_flags_f)(void);
1002+
typedef int (*sched_domain_flags_f)(void);
10031003

10041004
#define SDTL_OVERLAP 0x01
10051005

0 commit comments

Comments
 (0)