Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae91bc69 authored by Rohit Gupta's avatar Rohit Gupta Committed by Junjie Wu
Browse files

cpufreq: cpu-boost: Make the code 64 bit compatible



As the pointers' size change to 64 bits in the 64 bit kernel, the
int declarations for them from the legacy code give compilation
warnings which get flagged as errors.
Replace int casting of pointers with long to get rid of these
warnings.

Change-Id: I96b6cf342c2bf110220eac0addfb72fbdd969c6e
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
parent 408d933c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ static void do_input_boost_rem(struct work_struct *work)

static int boost_mig_sync_thread(void *data)
{
	int dest_cpu = (int) data;
	int dest_cpu = (long) data;
	int src_cpu, ret;
	struct cpu_sync *s = &per_cpu(sync_info, dest_cpu);
	struct cpufreq_policy dest_policy;
@@ -384,8 +384,8 @@ static int cpu_boost_init(void)
		spin_lock_init(&s->lock);
		INIT_DELAYED_WORK(&s->boost_rem, do_boost_rem);
		INIT_DELAYED_WORK(&s->input_boost_rem, do_input_boost_rem);
		s->thread = kthread_run(boost_mig_sync_thread, (void *)cpu,
					"boost_sync/%d", cpu);
		s->thread = kthread_run(boost_mig_sync_thread,
				(void *) (long)cpu, "boost_sync/%d", cpu);
		set_cpus_allowed(s->thread, *cpumask_of(cpu));
	}
	cpufreq_register_notifier(&boost_adjust_nb, CPUFREQ_POLICY_NOTIFIER);