Skip to content

Commit 7b3d800

Browse files
authored
Correct logical operation for RT kernels (#514)
Likely, the author meant "AND" operation Signed-off-by: Mario Roy <[email protected]>
1 parent 56a7e40 commit 7b3d800

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

linux-cachyos-bmq/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ prepare() {
345345
### Select preempt type
346346

347347
# We should not set up the PREEMPT for RT kernels
348-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
348+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
349349
case "$_preempt" in
350350
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
351351
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-bore/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ prepare() {
345345
### Select preempt type
346346

347347
# We should not set up the PREEMPT for RT kernels
348-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
348+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
349349
case "$_preempt" in
350350
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
351351
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-deckify/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ prepare() {
346346
### Select preempt type
347347

348348
# We should not set up the PREEMPT for RT kernels
349-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
349+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
350350
case "$_preempt" in
351351
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
352352
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-eevdf/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ prepare() {
345345
### Select preempt type
346346

347347
# We should not set up the PREEMPT for RT kernels
348-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
348+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
349349
case "$_preempt" in
350350
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
351351
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-hardened/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ prepare() {
347347
### Select preempt type
348348

349349
# We should not set up the PREEMPT for RT kernels
350-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
350+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
351351
case "$_preempt" in
352352
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
353353
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-lts/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ prepare() {
348348
### Select preempt type
349349

350350
# We should not set up the PREEMPT for RT kernels
351-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
351+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
352352
case "$_preempt" in
353353
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
354354
voluntary) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-rc/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ prepare() {
386386
### Select preempt type
387387

388388
# We should not set up the PREEMPT for RT kernels
389-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
389+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
390390
case "$_preempt" in
391391
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
392392
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-rt-bore/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ prepare() {
345345
### Select preempt type
346346

347347
# We should not set up the PREEMPT for RT kernels
348-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
348+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
349349
case "$_preempt" in
350350
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
351351
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos-server/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ prepare() {
345345
### Select preempt type
346346

347347
# We should not set up the PREEMPT for RT kernels
348-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
348+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
349349
case "$_preempt" in
350350
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
351351
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

linux-cachyos/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ prepare() {
386386
### Select preempt type
387387

388388
# We should not set up the PREEMPT for RT kernels
389-
if [[ "$_cpusched" != "rt" || "$_cpusched" != "rt-bore" ]]; then
389+
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
390390
case "$_preempt" in
391391
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
392392
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;

0 commit comments

Comments
 (0)