FORUMS
Remove All Ads from XDA

[Q] Implement intell_plug

67 posts
Thanks Meter: 19
 
Post Reply Email Thread
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.
 
 
9th May 2015, 10:50 AM |#2  
Nikita Pro Android's Avatar
Senior Member
Flag Komsomolsk-on-Amur
Thanks Meter: 1,268
 
Donate to Me
More
Question
I have the same problem. Did you fix it?
20th May 2015, 11:01 PM |#3  
nosedive's Avatar
Senior Member
Flag Vienna
Thanks Meter: 214
 
More
take a look at the commit here:
https://github.com/faux123/android_k...64543b890012f4

i found the solution here and compile worked well
http://forum.xda-developers.com/show...5#post55894825

br,
nosedive
26th January 2016, 02:15 AM |#4  
olokos's Avatar
Recognized Developer
Flag Warsaw
Thanks Meter: 2,479
 
Donate to Me
More
That's how you implement Intelliplug 4.0 properly.
https://github.com/olokos/OK-Kernel-...797896028fbf16
Please do mention me when you use my commit as it took me a few hours to track down every single intelliplug change (it's spread between three different devices) and then merge it into a single working commit.
The Following 4 Users Say Thank You to olokos For This Useful Post: [ View ]
16th September 2017, 02:11 AM |#5  
Senior Member
Thanks Meter: 51
 
More
Op if it works please release it.
28th April 2019, 12:26 PM |#6  
Senior Member
Thanks Meter: 544
 
More
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
sched.h

Thx for any help
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes