)]}'
{"id":"LineageOS%2Fandroid_kernel_motorola_sdm632~443021","triplet_id":"LineageOS%2Fandroid_kernel_motorola_sdm632~lineage-22.2~I678d8ee899ecfbe0a1f0bb94da85d54fff924a57","project":"LineageOS/android_kernel_motorola_sdm632","branch":"lineage-22.2","topic":"uclamp","hashtags":[],"change_id":"I678d8ee899ecfbe0a1f0bb94da85d54fff924a57","subject":"BACKPORT: sched/uclamp: Add a new sysctl to control RT default boost value","status":"ABANDONED","created":"2025-08-17 21:10:47.000000000","updated":"2025-08-17 22:17:09.000000000","total_comment_count":1,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"32156447a715ee5257b1eeb57002e29bc46cd8ac","_number":443021,"virtual_id_number":443021,"owner":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"actions":{},"labels":{"Verified":{"rejected":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"all":[{"value":-1,"date":"2025-08-17 21:11:44.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0,"blocking":true},"Code-Review":{"all":[{"value":0,"permitted_voting_range":{"min":-2,"max":2},"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}],"values":{"-2":"Do not submit","-1":"I would prefer that you didn\u0027t submit this"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0},"CI":{"all":[{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}],"values":{"-1":"Fail"," 0":"No score","+1":"Pass"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}]},"pending_reviewers":{},"reviewer_updates":[],"messages":[{"id":"6020e8f7f988f1ba58f5c91a142cab7a42d341c4","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2025-08-17 21:10:47.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"d67ea7b412e99bb1928bba5ae7889827549e0d7c","author":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2025-08-17 21:11:44.000000000","message":"Patch Set 1: Verified-1","accounts_in_message":[],"_revision_number":1},{"id":"8e66a505b875d07093296b824b81620a57243394","author":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2025-08-17 21:12:15.000000000","message":"Patch Set 1:\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"32156447a715ee5257b1eeb57002e29bc46cd8ac","tag":"autogenerated:gerrit:abandon","author":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2025-08-17 22:17:09.000000000","message":"Abandoned","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"27834254b7dc42c18c8118c1927f1f827c8419a7","revisions":{"27834254b7dc42c18c8118c1927f1f827c8419a7":{"kind":"REWORK","_number":1,"created":"2025-08-17 21:10:47.000000000","uploader":{"_account_id":24773,"name":"ROMS G","display_name":"ROMSG","email":"romsg85@gmail.com","username":"ROMSG","avatars":[{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/aa54dbfa122b7f9023df2533a902f19e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"ref":"refs/changes/21/443021/1","fetch":{"anonymous http":{"url":"https://github.com/LineageOS/android_kernel_motorola_sdm632","ref":"refs/changes/21/443021/1","commands":{"Branch":"git fetch https://github.com/LineageOS/android_kernel_motorola_sdm632 refs/changes/21/443021/1 \u0026\u0026 git checkout -b change-443021 FETCH_HEAD","Checkout":"git fetch https://github.com/LineageOS/android_kernel_motorola_sdm632 refs/changes/21/443021/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://github.com/LineageOS/android_kernel_motorola_sdm632 refs/changes/21/443021/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://github.com/LineageOS/android_kernel_motorola_sdm632 refs/changes/21/443021/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://github.com/LineageOS/android_kernel_motorola_sdm632 refs/changes/21/443021/1","Reset To":"git fetch https://github.com/LineageOS/android_kernel_motorola_sdm632 refs/changes/21/443021/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"328528bc49c00d481a67b8bf6a8d405360a3925b","subject":"UPSTREAM: sched/uclamp: Fix a deadlock when enabling uclamp static key","web_links":[{"name":"GitHub","tooltip":"Open in GitWeb","url":"https://github.com/LineageOS/android_kernel_motorola_sdm632/commit/328528bc49c00d481a67b8bf6a8d405360a3925b"}]}],"author":{"name":"Qais Yousef","email":"qais.yousef@arm.com","date":"2020-07-16 11:03:45.000000000","tz":60},"committer":{"name":"ROMSG","email":"romsg85@gmail.com","date":"2025-08-17 21:08:38.000000000","tz":-420},"subject":"BACKPORT: sched/uclamp: Add a new sysctl to control RT default boost value","message":"BACKPORT: sched/uclamp: Add a new sysctl to control RT default boost value\n\nRT tasks by default run at the highest capacity/performance level. When\nuclamp is selected this default behavior is retained by enforcing the\nrequested uclamp.min (p-\u003euclamp_req[UCLAMP_MIN]) of the RT tasks to be\nuclamp_none(UCLAMP_MAX), which is SCHED_CAPACITY_SCALE; the maximum\nvalue.\n\nThis is also referred to as \u0027the default boost value of RT tasks\u0027.\n\nSee commit 1a00d999971c (\"sched/uclamp: Set default clamps for RT tasks\").\n\nOn battery powered devices, it is desired to control this default\n(currently hardcoded) behavior at runtime to reduce energy consumed by\nRT tasks.\n\nFor example, a mobile device manufacturer where big.LITTLE architecture\nis dominant, the performance of the little cores varies across SoCs, and\non high end ones the big cores could be too power hungry.\n\nGiven the diversity of SoCs, the new knob allows manufactures to tune\nthe best performance/power for RT tasks for the particular hardware they\nrun on.\n\nThey could opt to further tune the value when the user selects\na different power saving mode or when the device is actively charging.\n\nThe runtime aspect of it further helps in creating a single kernel image\nthat can be run on multiple devices that require different tuning.\n\nKeep in mind that a lot of RT tasks in the system are created by the\nkernel. On Android for instance I can see over 50 RT tasks, only\na handful of which created by the Android framework.\n\nTo control the default behavior globally by system admins and device\nintegrator, introduce the new sysctl_sched_uclamp_util_min_rt_default\nto change the default boost value of the RT tasks.\n\nI anticipate this to be mostly in the form of modifying the init script\nof a particular device.\n\nTo avoid polluting the fast path with unnecessary code, the approach\ntaken is to synchronously do the update by traversing all the existing\ntasks in the system. This could race with a concurrent fork(), which is\ndealt with by introducing sched_post_fork() function which will ensure\nthe racy fork will get the right update applied.\n\nTested on Juno-r2 in combination with the RT capacity awareness [1].\nBy default an RT task will go to the highest capacity CPU and run at the\nmaximum frequency, which is particularly energy inefficient on high end\nmobile devices because the biggest core[s] are \u0027huge\u0027 and power hungry.\n\nWith this patch the RT task can be controlled to run anywhere by\ndefault, and doesn\u0027t cause the frequency to be maximum all the time.\nYet any task that really needs to be boosted can easily escape this\ndefault behavior by modifying its requested uclamp.min value\n(p-\u003euclamp_req[UCLAMP_MIN]) via sched_setattr() syscall.\n\n[1] 804d402fb6f6: (\"sched/rt: Make RT capacity-aware\")\n\nSigned-off-by: Qais Yousef \u003cqais.yousef@arm.com\u003e\nSigned-off-by: Peter Zijlstra (Intel) \u003cpeterz@infradead.org\u003e\nLink: https://lkml.kernel.org/r/20200716110347.19553-2-qais.yousef@arm.com\n\n(cherry picked from commit 13685c4a08fca9dd76bf53bfcbadc044ab2a08cb)\n\nConflicts:\n   kernel/fork.c\n   kernel/sysctl.c\nUpstream has commit 5a5cf5cb30d7 (\"cgroup: refactor fork helpers\") and\nfurther commit ef2c41cf38a7 (\"clone3: allow spawning processes into\ncgroups\") which affect the calls after this.  Picking the first would\nbe easy but the 2nd would be much bigger.  Also, my cherry-pick put my\nsysctl in the wrong place in the table in sysctl.c, so I manually\nmoved it.  Weird.\n\nBUG\u003db:160171130\nTEST\u003dWith series rt tasks don\u0027t get boosted\n\nSigned-off-by: Douglas Anderson \u003cdianders@chromium.org\u003e\nChange-Id: I678d8ee899ecfbe0a1f0bb94da85d54fff924a57\nReviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2340433\nReviewed-by: Joel Fernandes \u003cjoelaf@google.com\u003e\n","web_links":[{"name":"GitHub","tooltip":"Open in GitWeb","url":"https://github.com/LineageOS/android_kernel_motorola_sdm632/commit/27834254b7dc42c18c8118c1927f1f827c8419a7"}],"resolve_conflicts_web_links":[{"name":"GitHub","tooltip":"Open in GitWeb","url":"https://github.com/LineageOS/android_kernel_motorola_sdm632/commit/27834254b7dc42c18c8118c1927f1f827c8419a7"}]},"parents_data":[{"branch_name":"refs/heads/lineage-22.2","commit_id":"328528bc49c00d481a67b8bf6a8d405360a3925b","is_merged_in_target_branch":false,"change_id":"Idd1fdadedae2a7289d7c5eb7df5caebf0bf12f58","change_number":443020,"patch_set_number":1,"change_status":"ABANDONED"}],"branch":"refs/heads/lineage-22.2"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
