Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append "DEFAULT_BFQ" to the default I/O scheduler #456

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions block/Kconfig.iosched
Original file line number Diff line number Diff line change
@@ -53,6 +53,9 @@ choice
config DEFAULT_CFQ
bool "CFQ" if IOSCHED_CFQ=y

config DEFAULT_BFQ
bool "BFQ" if IOSCHED_BFQ=y

config DEFAULT_NOOP
bool "No-op"

@@ -62,6 +65,7 @@ config DEFAULT_IOSCHED
string
default "deadline" if DEFAULT_DEADLINE
default "cfq" if DEFAULT_CFQ
default "bfq" if DEFAULT_BFQ
default "noop" if DEFAULT_NOOP

config MQ_IOSCHED_DEADLINE
9 changes: 9 additions & 0 deletions drivers/char/Kconfig
Original file line number Diff line number Diff line change
@@ -25,6 +25,15 @@ config DEVKMEM
kind of kernel debugging operations.
When in doubt, say "N".

config WASAWASA
tristate "/dev/wasawasa virtual device support"
default n
help
Say Y here if you want to support the /dev/sawasawa device.
To compile this driver as a module, choose M here: the module
will be called wasawasa.
When in doubt, say "N".

config SGI_SNSC
bool "SGI Altix system controller communication support"
depends on (IA64_SGI_SN2 || IA64_GENERIC)
1 change: 1 addition & 0 deletions drivers/char/Makefile
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ obj-$(CONFIG_UV_MMTIMER) += uv_mmtimer.o
obj-$(CONFIG_IBM_BSR) += bsr.o
obj-$(CONFIG_SGI_MBCS) += mbcs.o
obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
obj-$(CONFIG_WASAWASA) += wasawasa.o

obj-$(CONFIG_PRINTER) += lp.o

95 changes: 95 additions & 0 deletions drivers/char/wasawasa.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* wasawasa - Baby, please kernel module. (BPKM)
*
* Copyright © 2014 sasairc
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar.Hocevar See the COPYING file or http://www.wtfpl.net/
* for more details.
*/

#include <linux/semaphore.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/uaccess.h>
#include <asm/string.h>

#define MODNAME "wasawasa"
#define CHAR_MAJOR 254
#define CHAR_MINOR 1

MODULE_LICENSE("WTFPL");
MODULE_AUTHOR("sasairc");

static struct cdev cdev;
static struct semaphore sema;

static
int open_wasawasa(struct inode *inode, struct file *file)
{
return 0;
}

static
int release_wasawasa(struct inode *inode, struct file *file)
{
return 0;
}

static
ssize_t read_wasawasa(struct file *file, char *buf, size_t count, loff_t *offset)
{
ssize_t len = 0;

const char* str = "わさわさ";

down_interruptible(&sema);
if ((len = strlen(str)) > 0) {
copy_to_user(buf, str, len);
*offset += len;
}
up(&sema);

return len;
}

static
struct file_operations cdev_fops = {
.owner = THIS_MODULE,
.open = open_wasawasa,
.read = read_wasawasa,
.release = release_wasawasa,
};

static
int __init init_wasawasa(void)
{
int ret = 0;

dev_t dev;

dev = MKDEV(CHAR_MAJOR, 0);
cdev_init(&cdev, &cdev_fops);
if ((ret = cdev_add(&cdev, dev, CHAR_MINOR)) < 0)
printk(KERN_WARNING "%s: cdev_add() failure.\n",
MODNAME);
else
sema_init(&sema, 1);

return ret;
}

static
void __exit exit_wasawasa(void)
{
dev_t dev;

dev = MKDEV(CHAR_MAJOR, 0);
cdev_del(&cdev);
unregister_chrdev_region(dev, CHAR_MINOR);
}

module_init(init_wasawasa);
module_exit(exit_wasawasa);
12 changes: 12 additions & 0 deletions drivers/video/logo/Kconfig
Original file line number Diff line number Diff line change
@@ -27,6 +27,18 @@ config LOGO_LINUX_CLUT224
bool "Standard 224-color Linux logo"
default y

config LOGO_VIM_CLUT224
bool "224-color Vi IMproved (vim) logo"
default y

config LOGO_NAXTU_CLUT224
bool "224-color NAXTU logo"
default y
help
Say Y here if you want to see the NAXTU face.
"It's too awesome!! I'm coming, I'm coming, I'm coming, I'm coming...
Ah...! Hmmm, Ahhhhhh!!"

config LOGO_BLACKFIN_VGA16
bool "16-colour Blackfin Processor Linux logo"
depends on BLACKFIN
2 changes: 2 additions & 0 deletions drivers/video/logo/Makefile
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@ obj-$(CONFIG_LOGO) += logo.o
obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
obj-$(CONFIG_LOGO_VIM_CLUT224) += logo_vim_clut224.o
obj-$(CONFIG_LOGO_NAXTU_CLUT224) += logo_naxtu_clut224.o
obj-$(CONFIG_LOGO_BLACKFIN_CLUT224) += logo_blackfin_clut224.o
obj-$(CONFIG_LOGO_BLACKFIN_VGA16) += logo_blackfin_vga16.o
obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
8 changes: 8 additions & 0 deletions drivers/video/logo/logo.c
Original file line number Diff line number Diff line change
@@ -82,6 +82,14 @@ const struct linux_logo * __ref fb_find_logo(int depth)
/* Blackfin Linux logo */
logo = &logo_blackfin_clut224;
#endif
#ifdef CONFIG_LOGO_VIM_CLUT224
/* Vi IMproved (vim) logo */
logo = &logo_vim_clut224;
#endif
#ifdef CONFIG_LOGO_NAXTU_CLUT224
/* NAXTU logo */
logo = &logo_naxtu_clut224;
#endif
#ifdef CONFIG_LOGO_DEC_CLUT224
/* DEC Linux logo on MIPS/MIPS64 or ALPHA */
logo = &logo_dec_clut224;
1,123 changes: 1,123 additions & 0 deletions drivers/video/logo/logo_naxtu_clut224.ppm

Large diffs are not rendered by default.

2,819 changes: 2,819 additions & 0 deletions drivers/video/logo/logo_vim_clut224.ppm

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions include/linux/linux_logo.h
Original file line number Diff line number Diff line change
@@ -35,6 +35,8 @@ struct linux_logo {
extern const struct linux_logo logo_linux_mono;
extern const struct linux_logo logo_linux_vga16;
extern const struct linux_logo logo_linux_clut224;
extern const struct linux_logo logo_vim_clut224;
extern const struct linux_logo logo_naxtu_clut224;
extern const struct linux_logo logo_blackfin_vga16;
extern const struct linux_logo logo_blackfin_clut224;
extern const struct linux_logo logo_dec_clut224;