Skip to content

Instantly share code, notes, and snippets.

View pfactum's full-sized avatar

Oleksandr Natalenko pfactum

View GitHub Profile
@pfactum
pfactum / mgn-improvements-v4.patch
Created July 30, 2012 12:00
MiniGal Nano improvements, v4
--- mediaboxAdv-1.3.4b.js~ 2012-07-26 21:24:46.000000000 +0300
+++ mediaboxAdv-1.3.4b.js 2012-07-30 14:59:18.089481136 +0300
@@ -29,11 +29,12 @@
);
image = new Element("div", {id: "mbImage"}).injectInside(center);
+ image.addEvent("click", next);
bottom = new Element("div", {id: "mbBottom"}).injectInside(center).adopt(
closeLink = new Element("a", {id: "mbCloseLink", href: "#"}).addEvent("click", close),
nextLink = new Element("a", {id: "mbNextLink", href: "#"}).addEvent("click", next),
@pfactum
pfactum / uksm-debug.patch
Created August 31, 2012 12:48
UKSM scan_time debug patch
diff --git a/mm/uksm.c b/mm/uksm.c
index 768f700..dc40f65 100644
--- a/mm/uksm.c
+++ b/mm/uksm.c
@@ -4224,7 +4224,9 @@ static inline
unsigned int scan_time_to_sleep(unsigned long long scan_time, unsigned long ratio)
{
scan_time >>= 10; /* to usec level now */
- BUG_ON(scan_time > ULONG_MAX);
+
@pfactum
pfactum / uksm-fix-debug.patch
Created September 5, 2012 09:23
UKSM fix debug formatting
diff --git a/mm/uksm.c b/mm/uksm.c
index dc40f65..313bc73 100644
--- a/mm/uksm.c
+++ b/mm/uksm.c
@@ -4566,11 +4566,8 @@ rm_slot:
if (max_cpu_ratio) {
scan_time = task_sched_runtime(current) - start_time;
- if ((scan_time >> 10) > (unsigned long long) ULONG_MAX) {
- printk(KERN_ERR "scan_time=%llu start_time=%llu"
@pfactum
pfactum / toi-3.6-patch-2
Created October 4, 2012 18:23
tuonice_builin patch
diff --git a/kernel/power/tuxonice_builtin.c b/kernel/power/tuxonice_builtin.c
index 4a16fb7..62b5d14 100644
--- a/kernel/power/tuxonice_builtin.c
+++ b/kernel/power/tuxonice_builtin.c
@@ -61,24 +61,22 @@ static void copyback_high(void)
if (!pbe_page)
return;
- this_pbe = (struct pbe *) kmap_atomic(pbe_page, KM_BOUNCE_READ);
+ this_pbe = (struct pbe *) kmap_atomic(pbe_page);
@pfactum
pfactum / test.c
Created December 12, 2012 00:36
Silly lab for ITS :)
#include <stdio.h>
#include <sysexits.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
(void)argc;
(void)argv;
unsigned int array_size;
#!/usr/bin/env bash
local_storage="/home/pf/work/tmp/mirrors"
mirrors="\
ck;http://ck.kolivas.org;patches/ \
bfq;http://algo.ing.unimo.it;people/paolo/disk_sched/patches/ \
"
for mirror in $mirrors
diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
index 695e064..0ee5f0f 100644
--- a/block/Kconfig.iosched
+++ b/block/Kconfig.iosched
@@ -48,7 +48,7 @@ config IOSCHED_BFQ
It aims at distributing the bandwidth as desired, independently of
the disk parameters and with any workload. It also tries to
guarantee low latency to interactive and soft real-time
- applications. If compiled built-in (saying Y here), BFQ can
+ applications. If compiled built-in (saying Y here), BFQ can
This file has been truncated, but you can view the full file.
diff --git a/Documentation/DocBook/media_api.tmpl b/Documentation/DocBook/media_api.tmpl
index 6a8b715..9c92bb8 100644
--- a/Documentation/DocBook/media_api.tmpl
+++ b/Documentation/DocBook/media_api.tmpl
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
@pfactum
pfactum / -
Created February 23, 2014 19:49
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.13.1-pf Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
From 803d997f52253f5a50f71ef4fc00d3d87a55e5d4 Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Thu, 12 Dec 2013 16:58:39 +0200
Subject: [PATCH 1/2] ck-3.12: fix BFS compiling with CONFIG_SMP=n
---
kernel/sched/bfs.c | 5 -----
kernel/sched/bfs_sched.h | 8 ++++++++
2 files changed, 8 insertions(+), 5 deletions(-)