[Q] Implement intell_plug

epiquiem

Senior Member
May 25, 2013
67
20
0
epiquiem.github.io
I'm attempting to implement faux123's intelli_plug into my kernel. It was added in this commit and enabled in "make menuconfig". However, it throws me errors during compilation:
Code:
arch/arm/hotplug/intelli_plug.c:166: error: undefined reference to 'avg_nr_running'
arch/arm/hotplug/intelli_plug.c:227: error: undefined reference to 'avg_cpu_nr_running'
make: *** [.tmp_vmlinux1] Error 1
I have reached out prior to this post, but that has gotten me nowhere.

Thanks in advance.
 
  • Like
Reactions: duttyend

olokos

Recognized Developer
Oct 16, 2011
2,939
2,477
0
Warsaw

nalas

Senior Member
Nov 19, 2012
1,157
842
143
Poland
Hello I have the sam eproblem with implementaion of Intelli_plug to Samsung Exynos platform:
the same errors with avg_nr_running - Ive added codes to the core.c but in shed.h I have not the same codes as You have means no for ex. :
Code:
static inline void inc_nr_running(struct rq *rq)  - I HAVE NO this function..
{
#ifdef CONFIG_INTELLI_PLUG
	struct nr_stats_s *nr_stats = &per_cpu(runqueue_stats, rq->cpu);
#endif

	sched_update_nr_prod(cpu_of(rq), rq->nr_running, true);
#ifdef CONFIG_INTELLI_PLUG
	write_seqcount_begin(&nr_stats->ave_seqcnt);
	nr_stats->ave_nr_running = do_avg_nr_running(rq);
	nr_stats->nr_last_stamp = rq->clock_task;
#endif
	rq->nr_running++;
#ifdef CONFIG_INTELLI_PLUG
	write_seqcount_end(&nr_stats->ave_seqcnt);
#endif
and alwyas I have compilling error .

I put my shed.h file
View attachment sched.h

Thx for any help
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone