diff options
author | Vasiliy Ulyanov <v.ulyanov@samsung.com> | 2014-07-21 11:27:52 +0400 |
---|---|---|
committer | Vasiliy Ulyanov <v.ulyanov@samsung.com> | 2014-07-21 11:27:52 +0400 |
commit | 60cccc5017cf8e6bea4859830b0e255d0a60e0b1 (patch) | |
tree | 60bd222f5714057e04816af2ce7234d01a5fd054 | |
parent | beb4f68781174b046bd650311318369a9717ec8e (diff) | |
download | swap-modules-60cccc5017cf8e6bea4859830b0e255d0a60e0b1.tar.gz swap-modules-60cccc5017cf8e6bea4859830b0e255d0a60e0b1.tar.bz2 swap-modules-60cccc5017cf8e6bea4859830b0e255d0a60e0b1.zip |
[REFACTOR] Remove start.sh/stop.sh
The scripts are now moved to swap-manager
Change-Id: I92a226fdc852588a63862e581e04f60fa3ee2016
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
-rwxr-xr-x | packaging/swap-modules.spec | 4 | ||||
-rwxr-xr-x | start.sh | 62 | ||||
-rwxr-xr-x | stop.sh | 23 |
3 files changed, 0 insertions, 89 deletions
diff --git a/packaging/swap-modules.spec b/packaging/swap-modules.spec index 57861452..1b7fd0aa 100755 --- a/packaging/swap-modules.spec +++ b/packaging/swap-modules.spec @@ -52,8 +52,6 @@ install -m 666 ks_features/swap_ks_features.ko -t %{buildroot}/opt/swap/sdk install -m 666 sampler/swap_sampler.ko -t %{buildroot}/opt/swap/sdk install -m 666 energy/swap_energy.ko -t %{buildroot}/opt/swap/sdk install -m 666 parser/swap_message_parser.ko -t %{buildroot}/opt/swap/sdk -install -m 755 start.sh %{buildroot}/opt/swap/sdk -install -m 755 stop.sh %{buildroot}/opt/swap/sdk %files %defattr(-,root,root) @@ -69,5 +67,3 @@ install -m 755 stop.sh %{buildroot}/opt/swap/sdk /opt/swap/sdk/swap_sampler.ko /opt/swap/sdk/swap_energy.ko /opt/swap/sdk/swap_message_parser.ko -/opt/swap/sdk/start.sh -/opt/swap/sdk/stop.sh diff --git a/start.sh b/start.sh deleted file mode 100755 index 92491642..00000000 --- a/start.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -if [ ! -e /sys/kernel/debug/swap/writer/raw ]; then - - insmod swap_buffer.ko || exit 1 # buffer is loaded - insmod swap_ksyms.ko || exit 1 - insmod swap_driver.ko || exit 1 # driver is loaded - insmod swap_writer.ko || exit 1 - insmod swap_kprobe.ko || exit 1 # kprobe is loaded - insmod swap_ks_manager.ko || exit 1 # ks_manager is loaded - insmod swap_uprobe.ko || exit 1 # uprobe is loaded - insmod swap_us_manager.ko || exit 1 # us_manager is loaded - insmod swap_ks_features.ko || exit 1 # ks_features is loaded - insmod swap_sampler.ko || exit 1 - insmod swap_energy.ko || exit 1 - insmod swap_message_parser.ko || exit 1 # parser is loaded - -fi - -# Energy coefficients -# CPU coefficients are divided by 10^6 because -# - they were calculated for mAs -# - SWAP modules count nanoseconds -# - result should be exposed in uAs -# Flash coefficients are multiplied by 10^3 because -# - they were calculated for mAs -# - result should be exposed in uAs -# LCD coefficients are divided by 10^6 because -# - they were calculated for mAs -# - result should be exposed in uAs - -# cpu idle: 62.27 / 1 -echo 62270 > /sys/kernel/debug/swap/energy/cpu_idle/numerator && -echo 1000000000 > /sys/kernel/debug/swap/energy/cpu_idle/denominator && - -# cpu0 running: 213.21 / 1 -echo 213210 > /sys/kernel/debug/swap/energy/cpu_running/numerator && -echo 1000000000 > /sys/kernel/debug/swap/energy/cpu_running/denominator && - -# cpuN running: 97.29 / 1 -echo 97290 > /sys/kernel/debug/swap/energy/cpuN_running/numerator && -echo 1000000000 > /sys/kernel/debug/swap/energy/cpuN_running/denominator && - -# flash read: 74.32 / 33154239 -echo 74320 > /sys/kernel/debug/swap/energy/flash_read/numerator && -echo 33154239 > /sys/kernel/debug/swap/energy/flash_read/denominator && - -# flash write: 141.54 / 27920983 -echo 141540 > /sys/kernel/debug/swap/energy/flash_write/numerator && -echo 27920983 > /sys/kernel/debug/swap/energy/flash_write/denominator && - -# LCD: -if [ -d /sys/kernel/debug/swap/energy/lcd/ ] -then - # lcd max (white max - black max) / 2: 255 / 1 - echo 255 > `ls /sys/kernel/debug/swap/energy/lcd/*/max_num` && - echo 1000000 > `ls /sys/kernel/debug/swap/energy/lcd/*/max_denom` && - - # lcd min (white min - black min) / 2: 179 / 1 - echo 179 > `ls /sys/kernel/debug/swap/energy/lcd/*/min_num` && - echo 1000000 > `ls /sys/kernel/debug/swap/energy/lcd/*/min_denom` -fi diff --git a/stop.sh b/stop.sh deleted file mode 100755 index dcb47067..00000000 --- a/stop.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -rmmod swap_message_parser -rmmod swap_energy -rmmod swap_sampler -rmmod swap_ks_features -rmmod swap_us_manager -rmmod swap_uprobe -rmmod swap_ks_manager -rmmod swap_kprobe -rmmod swap_writer -rmmod swap_driver -rmmod swap_ksyms -rmmod swap_buffer - - - - - - - - - |