[Q] Implement intell_plug

67 posts
Thanks Meter: 20
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:
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.
The Following User Says Thank You to epiquiem For This Useful Post: [ View ] Gift epiquiem Ad-Free
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
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
take a look at the commit here:

i found the solution here and compile worked well

26th January 2016, 02:15 AM |#4  
olokos's Avatar
Recognized Developer
Flag Warsaw
Thanks Meter: 2,493
Donate to Me
That's how you implement Intelliplug 4.0 properly.
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
Op if it works please release it.
28th April 2019, 12:26 PM |#6  
nalas's Avatar
Senior Member
Thanks Meter: 840
Donate to Me
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. :
static inline void inc_nr_running(struct rq *rq)  - I HAVE NO this function..
	struct nr_stats_s *nr_stats = &per_cpu(runqueue_stats, rq->cpu);

	sched_update_nr_prod(cpu_of(rq), rq->nr_running, true);
	nr_stats->ave_nr_running = do_avg_nr_running(rq);
	nr_stats->nr_last_stamp = rq->clock_task;
and alwyas I have compilling error .

I put my shed.h file

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